Skip to content

Commit dc9d4f7

Browse files
Fix docker left-column centering regression with compact rows
1 parent 5a75269 commit dc9d4f7

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

209 KB
Binary file not shown.

folderview.plus.plg

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@
66
<!ENTITY launch "Settings/FolderViewPlus">
77
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
88
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/main/folderview.plus.plg">
9-
<!ENTITY version "2026.03.08.2">
10-
<!ENTITY md5 "69d5630da626645d1501eb5910717063">
9+
<!ENTITY version "2026.03.08.3">
10+
<!ENTITY md5 "be934ae92e26d0deb8a28f35745a2fa5">
1111
]>
1212

1313
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" icon="folder-open-o" support="https://github.com/alexphillips-dev/FolderView-Plus/issues" min="7.0.0">
1414
<CHANGES>
1515

16+
###2026.03.08.3
17+
- Refine Docker left-column alignment logic:
18+
- keep natural compact layout for main preview rows,
19+
- apply absolute vertical-centering only to fixed-column clone rows,
20+
- preserve compact spacing while restoring visual middle alignment.
21+
1622
###2026.03.08.2
1723
- Tighten Docker row-height syncing to restore compact spacing:
1824
- keep natural height on main folder rows (with preview content),

src/folderview.plus/usr/local/emhttp/plugins/folderview.plus/scripts/docker.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,11 @@ const applyFolderCellCentering = (cell, rowHeight = 0) => {
148148
return false;
149149
}
150150

151+
const row = cell.parentElement;
152+
const isPreviewRow = rowHasFolderPreview(row);
151153
const height = Number.isFinite(rowHeight) && rowHeight > 0 ? Math.round(rowHeight) : 0;
152154
cell.style.setProperty('vertical-align', 'middle', 'important');
153-
cell.style.setProperty('position', 'static', 'important');
155+
cell.style.setProperty('position', isPreviewRow ? 'static' : 'relative', 'important');
154156
cell.style.setProperty('display', 'table-cell', 'important');
155157
cell.style.setProperty('padding-top', '0px', 'important');
156158
cell.style.setProperty('padding-bottom', '0px', 'important');
@@ -160,11 +162,11 @@ const applyFolderCellCentering = (cell, rowHeight = 0) => {
160162
cell.style.removeProperty('height');
161163
}
162164

163-
sub.style.setProperty('position', 'relative', 'important');
164-
sub.style.setProperty('top', 'auto', 'important');
165-
sub.style.setProperty('left', 'auto', 'important');
166-
sub.style.setProperty('right', 'auto', 'important');
167-
sub.style.setProperty('transform', 'none', 'important');
165+
sub.style.setProperty('position', isPreviewRow ? 'relative' : 'absolute', 'important');
166+
sub.style.setProperty('top', isPreviewRow ? 'auto' : '50%', 'important');
167+
sub.style.setProperty('left', isPreviewRow ? 'auto' : '8px', 'important');
168+
sub.style.setProperty('right', isPreviewRow ? 'auto' : '8px', 'important');
169+
sub.style.setProperty('transform', isPreviewRow ? 'none' : 'translateY(-50%)', 'important');
168170
sub.style.setProperty('display', 'flex', 'important');
169171
sub.style.setProperty('align-items', 'center', 'important');
170172
sub.style.setProperty('min-height', '0', 'important');

0 commit comments

Comments
 (0)