Skip to content

Commit 5fa508b

Browse files
committed
improve dashboard file list and grid styles
1 parent c1fca46 commit 5fa508b

1 file changed

Lines changed: 28 additions & 8 deletions

File tree

src/gui/src/css/dashboard.css

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,10 +2117,20 @@ body.myapps-reordering .myapps-tile {
21172117
padding: 0 10px;
21182118
}
21192119

2120+
.dashboard-section-files .files-tab .files.files-list-view .row .item-size,
2121+
.dashboard-section-files .files-tab .files.files-list-view .row .item-modified {
2122+
color: var(--dashboard-text-tertiary);
2123+
}
2124+
2125+
.dashboard-section-files .files-tab .files.files-list-view .row.selected .item-size,
2126+
.dashboard-section-files .files-tab .files.files-list-view .row.selected .item-modified {
2127+
color: inherit;
2128+
}
2129+
21202130
.dashboard-section-files .files-tab .files.files-grid-view {
21212131
display: grid;
21222132
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
2123-
gap: 10px;
2133+
gap: 12px;
21242134
padding: 16px;
21252135
align-content: start;
21262136
margin-bottom: 30px;
@@ -2159,6 +2169,8 @@ body.myapps-reordering .myapps-tile {
21592169
height: 20px !important;
21602170
margin: 5px;
21612171
border-radius: 50%;
2172+
background: var(--dashboard-background);
2173+
box-shadow: 0 0 0 2px var(--dashboard-background);
21622174
}
21632175

21642176
.dashboard-section-files .files-tab .files.files-grid-view .row {
@@ -2169,11 +2181,10 @@ body.myapps-reordering .myapps-tile {
21692181
padding: 12px;
21702182
height: auto;
21712183
gap: 8px;
2172-
border: 1px solid var(--dashboard-border);
2184+
border: 1px solid transparent;
21732185
border-radius: 8px;
21742186
cursor: pointer;
2175-
transition: all 0.15s ease;
2176-
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
2187+
transition: background-color 0.15s ease, border-color 0.15s ease;
21772188
}
21782189

21792190
@media (hover: hover) {
@@ -2195,14 +2206,14 @@ body.myapps-reordering .myapps-tile {
21952206
display: flex;
21962207
align-items: center;
21972208
justify-content: center;
2198-
background: var(--dashboard-background);
2209+
background: transparent;
21992210
border-radius: 8px;
22002211
overflow: hidden;
22012212
}
22022213

22032214
.dashboard-section-files .files-tab .files.files-grid-view .row .item-icon img {
2204-
width: 100%;
2205-
height: 100%;
2215+
width: 96px;
2216+
height: 96px;
22062217
object-fit: contain;
22072218
max-width: fit-content;
22082219
max-height: fit-content;
@@ -2220,8 +2231,12 @@ body.myapps-reordering .myapps-tile {
22202231
padding: 0;
22212232
font-size: 13px;
22222233
line-height: 1.4;
2223-
max-height: 2.8em;
2234+
white-space: normal;
2235+
display: -webkit-box;
2236+
-webkit-line-clamp: 2;
2237+
-webkit-box-orient: vertical;
22242238
overflow: hidden;
2239+
text-overflow: ellipsis;
22252240
word-break: break-word;
22262241
}
22272242

@@ -2288,6 +2303,11 @@ body.myapps-reordering .myapps-tile {
22882303
height: 40px;
22892304
}
22902305

2306+
.dashboard-section-files .files-tab .files.files-grid-view.files-grid-view-sm .row .item-icon img {
2307+
width: 52px;
2308+
height: 52px;
2309+
}
2310+
22912311
.dashboard-section-files .files-tab .files.files-grid-view.files-grid-view-sm .row .item-name {
22922312
font-size: 12px;
22932313
}

0 commit comments

Comments
 (0)