fix: move dashboard actions into compact menu
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 12s

This commit is contained in:
Kroonk
2026-05-22 00:02:51 +02:00
parent ae775c4dcf
commit df0a5d5035
7 changed files with 168 additions and 39 deletions

133
style.css
View File

@@ -60,9 +60,9 @@ input {
.hero {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 24px;
align-items: end;
grid-template-columns: minmax(0, 1fr) auto auto;
gap: 16px;
align-items: start;
padding: 32px 0 22px;
}
@@ -119,27 +119,106 @@ h1 {
display: grid;
grid-template-columns: repeat(3, minmax(82px, 1fr));
gap: 10px;
margin-top: 12px;
}
.dashboard-actions {
grid-column: 1 / -1;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 8px;
margin-top: -10px;
.dashboard-menu {
position: relative;
z-index: 30;
margin-top: 12px;
}
.user-badge {
min-height: 34px;
display: inline-flex;
align-items: center;
padding: 0 12px;
color: #c4f1ff;
background: rgba(17, 22, 36, 0.72);
.dashboard-menu-button {
width: 42px;
height: 42px;
display: inline-grid;
place-content: center;
gap: 5px;
color: #d8e7ff;
background: rgba(17, 22, 36, 0.82);
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 0.82rem;
cursor: pointer;
transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.dashboard-menu-button span {
width: 17px;
height: 2px;
display: block;
background: currentColor;
border-radius: 999px;
}
.dashboard-menu-button:hover,
.dashboard-menu-button.is-open {
background: rgba(103, 232, 249, 0.12);
border-color: rgba(103, 232, 249, 0.38);
}
.dashboard-menu-button:active {
transform: translateY(1px);
}
.dashboard-menu-panel {
position: absolute;
top: calc(100% + 10px);
right: 0;
width: min(260px, calc(100vw - 32px));
display: grid;
gap: 6px;
padding: 10px;
background: rgba(9, 13, 26, 0.96);
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 10px;
box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
backdrop-filter: blur(18px);
}
.dashboard-menu-panel[hidden] {
display: none;
}
.dashboard-menu-user {
display: block;
padding: 9px 10px;
color: #c4f1ff;
border-bottom: 1px solid rgba(148, 163, 184, 0.14);
font-size: 0.78rem;
font-weight: 700;
}
.dashboard-menu-user[hidden] {
display: none;
}
.dashboard-menu-item {
min-height: 36px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
color: var(--text);
background: transparent;
border: 1px solid transparent;
border-radius: 8px;
font: inherit;
font-size: 0.84rem;
text-decoration: none;
cursor: pointer;
}
.dashboard-menu-item:hover {
background: rgba(148, 163, 184, 0.1);
border-color: rgba(148, 163, 184, 0.16);
}
.dashboard-menu-item[hidden] {
display: none;
}
.dashboard-menu-item.is-danger {
color: #fecdd3;
}
.metric {
@@ -931,10 +1010,20 @@ main {
@media (max-width: 900px) {
.hero {
grid-template-columns: 1fr;
grid-template-columns: minmax(0, 1fr) auto;
align-items: start;
}
.brand {
grid-column: 1 / 2;
}
.dashboard-menu {
grid-column: 2 / 3;
grid-row: 1;
justify-self: end;
}
.admin-actions {
justify-content: flex-start;
}
@@ -960,14 +1049,10 @@ main {
}
.hero-meta {
grid-column: 1 / -1;
width: 100%;
}
.dashboard-actions {
justify-content: flex-start;
margin-top: 0;
}
.control-bar {
grid-template-columns: 1fr;
}