fix: improve quick actions and mobile archive nav

This commit is contained in:
2026-04-16 12:04:55 +02:00
parent 03d3a50169
commit 11ebb568db
3 changed files with 28 additions and 20 deletions

View File

@@ -99,6 +99,7 @@ def create_app(config_class: type[Config] = Config) -> Flask:
"mobile_nav_items": [
("tasks.my_tasks", "Meine Aufgaben", "house"),
("tasks.all_tasks", "Alle Aufgaben", "list"),
("tasks.archive_view", "Archiv", "check-double"),
("tasks.calendar_view", "Kalender", "calendar"),
("scoreboard.index", "Highscore", "trophy"),
("settings.index", "Optionen", "gear"),

View File

@@ -766,6 +766,11 @@ p {
gap: 14px;
}
.quick-actions {
display: grid;
gap: 12px;
}
.archive-user-tabs {
display: flex;
gap: 12px;
@@ -1529,8 +1534,8 @@ p {
right: 8px;
bottom: calc(10px + env(safe-area-inset-bottom));
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 4px;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 3px;
padding: 8px 8px;
border-radius: 22px;
background: var(--nav-bg);
@@ -1544,13 +1549,13 @@ p {
.nav-link {
display: grid;
justify-items: center;
gap: 5px;
gap: 4px;
min-width: 0;
padding: 10px 4px 9px;
padding: 10px 3px 9px;
color: var(--muted);
border-radius: 16px;
text-align: center;
font-size: 0.66rem;
font-size: 0.61rem;
font-weight: 700;
line-height: 1.05;
}
@@ -1558,7 +1563,7 @@ p {
.bottom-nav__item span {
display: block;
width: 100%;
min-height: 2.1em;
min-height: 2.3em;
white-space: normal;
word-break: keep-all;
overflow-wrap: break-word;
@@ -1572,8 +1577,8 @@ p {
.nav-icon,
.nav-icon svg {
width: 20px;
height: 20px;
width: 18px;
height: 18px;
display: inline-block;
}

View File

@@ -18,6 +18,7 @@
</article>
<article class="panel highlight-panel">
<p class="eyebrow">Schnellzugriff</p>
<div class="quick-actions">
<a class="button button--wide" href="{{ url_for('tasks.create') }}">
{{ nav_icon('plus') }}
<span>Neue Aufgabe anlegen</span>
@@ -30,6 +31,7 @@
{{ nav_icon('trophy') }}
<span>Zum aktuellen Highscore</span>
</a>
</div>
</article>
</section>