glance icon indicating copy to clipboard operation
glance copied to clipboard

Split columns with different widths

Open rubengarciam opened this issue 5 months ago • 3 comments

Description

Currently the split-column capability is great but the fact that every columns is 50% makes it for a very rigid structure. I'd appreciate if we could specify the width for each column, for example:

- type: split-column
  max-columns: 2
  widgets:
  - type: rss
     width: 30% 
     ....
  - type: rss
    width: 70%
    ...

Alternatively, a more readable taxonomy could also be defined (but harder to implement?): one-third, two-thirds, ...

I have tried applying custom CSS but the output not correct, as the 50% width is fixed at an upper level

rubengarciam avatar Aug 14 '25 03:08 rubengarciam

Hey @rubengarciam,

This is what I did as a temporary workaround:

.masonry > *:first-child {
  flex: 0 0 calc(60% - var(--widget-gap));
}

jeraldlyh avatar Aug 23 '25 14:08 jeraldlyh

@jeraldlyh where should I include that code?

beatrizq avatar Sep 08 '25 21:09 beatrizq

@jeraldlyh where should I include that code?

There's an option to specify custom css file.

https://github.com/glanceapp/glance/blob/main/docs/configuration.md#custom-css-file

jeraldlyh avatar Sep 10 '25 02:09 jeraldlyh