diff options
| author | winter | 2025-01-19 23:22:34 +0000 |
|---|---|---|
| committer | winter | 2025-01-19 23:22:34 +0000 |
| commit | bf031d9a72a34922f3ac8ccdf5212a384103fc80 (patch) | |
| tree | 36b8a70517c55fa5d1cfe9e0cb8ff45896ac5b42 | |
| parent | f5ad15cc68804351389192f149b0f48866f1d9eb (diff) | |
add timeline navigation links to left mobilepane
| -rw-r--r-- | static/mobilepanes.css | 18 | ||||
| -rw-r--r-- | templates/mobilepane_left.php | 7 |
2 files changed, 25 insertions, 0 deletions
diff --git a/static/mobilepanes.css b/static/mobilepanes.css index abd3b68..890ae57 100644 --- a/static/mobilepanes.css +++ b/static/mobilepanes.css @@ -5,4 +5,22 @@ main.mobilePane { #notificationsPanel { box-sizing: border-box; } + + .navlink { + display: block; + background: var(--clr-primary); + border-radius: var(--border-radius); + color: var(--clr-foreground-on-primary); + padding: var(--spacing-single) var(--spacing-double); + text-decoration: none; + + ul:has(&) { + list-style: none; + display: grid; + grid-auto-flow: column; + gap: var(--spacing-single); + width: max-content; + padding: 0 var(--spacing-double); + } + } } diff --git a/templates/mobilepane_left.php b/templates/mobilepane_left.php index 77925cc..f71279c 100644 --- a/templates/mobilepane_left.php +++ b/templates/mobilepane_left.php @@ -22,6 +22,13 @@ $settings = GlobalSettings::getInstance(); </header> <main class="mobilePane"> <?php + $links = [ + '/feed/home' => __('timeline.home.shortName'), + '/feed/global' => __('timeline.global.shortName'), + '/feed/local' => __('timeline.local.shortName'), + ]; + call_template('navigation_links', ['links' => $links]); + call_template('write_note_form'); call_template('left_side_navigation'); ?> |
