Skip to content

Commit fed3a30

Browse files
Restore docker folder vertical centering with compact row spacing
1 parent dc9d4f7 commit fed3a30

4 files changed

Lines changed: 19 additions & 15 deletions

File tree

209 KB
Binary file not shown.

folderview.plus.plg

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@
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.3">
10-
<!ENTITY md5 "be934ae92e26d0deb8a28f35745a2fa5">
9+
<!ENTITY version "2026.03.08.4">
10+
<!ENTITY md5 "5eb168d1dec551f9fa7ccd54276b291c">
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.4
17+
- Fix Docker folder left-column centering regression while keeping compact spacing:
18+
- use absolute vertical centering for folder label block on both row render paths,
19+
- retain clone-row-only height sync to avoid reintroducing oversized row gaps.
20+
1621
###2026.03.08.3
1722
- Refine Docker left-column alignment logic:
1823
- keep natural compact layout for main preview rows,

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,9 @@ const applyFolderCellCentering = (cell, rowHeight = 0) => {
149149
}
150150

151151
const row = cell.parentElement;
152-
const isPreviewRow = rowHasFolderPreview(row);
153152
const height = Number.isFinite(rowHeight) && rowHeight > 0 ? Math.round(rowHeight) : 0;
154153
cell.style.setProperty('vertical-align', 'middle', 'important');
155-
cell.style.setProperty('position', isPreviewRow ? 'static' : 'relative', 'important');
154+
cell.style.setProperty('position', 'relative', 'important');
156155
cell.style.setProperty('display', 'table-cell', 'important');
157156
cell.style.setProperty('padding-top', '0px', 'important');
158157
cell.style.setProperty('padding-bottom', '0px', 'important');
@@ -162,11 +161,11 @@ const applyFolderCellCentering = (cell, rowHeight = 0) => {
162161
cell.style.removeProperty('height');
163162
}
164163

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');
164+
sub.style.setProperty('position', 'absolute', 'important');
165+
sub.style.setProperty('top', '50%', 'important');
166+
sub.style.setProperty('left', '8px', 'important');
167+
sub.style.setProperty('right', '8px', 'important');
168+
sub.style.setProperty('transform', 'translateY(-50%)', 'important');
170169
sub.style.setProperty('display', 'flex', 'important');
171170
sub.style.setProperty('align-items', 'center', 'important');
172171
sub.style.setProperty('min-height', '0', 'important');

src/folderview.plus/usr/local/emhttp/plugins/folderview.plus/styles/docker.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ tr[class*="folder-id-"] > td {
3636
/* Unraid table styles can force top visual placement.
3737
Center the left folder block explicitly within the row height. */
3838
td.ct-name.folder-name {
39-
position: static;
39+
position: relative;
4040
display: table-cell;
4141
padding-top: 0 !important;
4242
padding-bottom: 0 !important;
4343
vertical-align: middle !important;
4444
}
4545

4646
td.ct-name.folder-name > .folder-name-sub {
47-
position: relative;
48-
top: auto;
49-
left: auto;
50-
right: auto;
51-
transform: none;
47+
position: absolute;
48+
top: 50%;
49+
left: 8px;
50+
right: 8px;
51+
transform: translateY(-50%);
5252
min-height: 0;
5353
width: 100%;
5454
}

0 commit comments

Comments
 (0)