Skip to content

[BUG] section width not correctly calculated in case where column count of section is too high #1927

@shumittaher

Description

@shumittaher

Environment

Self-Hosted (Docker)

System

No response

Version

Dashy version 3.1.1

Describe the problem

When the app layout is in auto mode, and there is no setup mentioned for how many columns the page should have,

it assumes the number of the available columns based on the width of the monitor.

if you set a section col count higher than the automatic number, it can look uneven.

here is an illustration. I mentioned the number of cols I setup in the section header for easy understanding of what's going on. (this is on a 1440p monitor with windows display scaling as 100% only)

Image

if we zoom-in we can see that the sections are not ending in the same longitude. here:

Image

another example:

Image

here the top 3 sections columns are 4 5 and 6 but they all look similar (but same) in size. then we have 2 more of size 2. total should is 4 but it is also taking almost same space as the one above it which was 6. then we have another of size 3 which is in the last row. now we change the last row one from 3 to 2. and here is the result:

Image

as we can see, the bottom row, all the sections are col count 2 but they occupy very different amounts of space.

Additional info

No response

Please tick the boxes

Metadata

Metadata

Assignees

Labels

🐛 Bug[ISSUE] Ticket describing something that isn't working

Projects

Status

Awaiting Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions