diff options
Diffstat (limited to 'widgets')
| -rw-r--r-- | widgets/disks.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/widgets/disks.lua b/widgets/disks.lua index aff3e5b..c5fec1e 100644 --- a/widgets/disks.lua +++ b/widgets/disks.lua @@ -60,9 +60,10 @@ function M.draw(cr, rect, colors) local top = inner.y + label_size * 2.2 local avail_h = (inner.y + inner.h) - top - -- Lay the rings out in a row, wrapping if the card is narrow. Below the - -- radius where a ring reads, fall back to labelled bars rather than drawing - -- a row of illegible dots. + -- All rings share one row: the cell width shrinks as mounts are added and + -- the ring radius follows it, so the layout never wraps. Below the radius + -- where a ring reads, fall back to labelled bars rather than drawing a row + -- of illegible dots. local n = #fs local per_row = n local cell_w = inner.w / per_row |
