Widgets display position

I have just two widgets in my dashboard. Is it possible to have the second widget display to the right of the first?

I kirby

You can set that in your config.php:

  c::set('panel.widgets', array(
    'site'     => true,
    'pages'    => true,
    'account'  => false,
    'history'  => false,

  ));

The order in the array will determine the order In the Panel.

Thanks, I have set the sort order, but what I want is the second widget to show to the right, not underneath.

Oh, alright, but they usually do show next to each other depending on screen width.

Maybe the panel.stylesheet option can help you there. Current it uses 2 columns for screen width above 40em, as shown below.

Try a smaller number on a custom stylesheet and set it using the panel.stylesheet option: see the docs.

@media screen and (min-width: 40em) {
  .dashboard {
    -webkit-column-count: 2;
    -webkit-column-gap: 1.5em;
    -moz-column-count: 2;
    -moz-column-gap: 1.5em;
    column-count: 2;
    column-gap: 1.5em;
  }
}
1 Like