Feat(sidebar): implement sidebar toggling #157

Merged
jakob.scheid merged 7 commits from feature/expandable-sidebar into main 2026-07-31 21:00:20 +02:00
Showing only changes of commit 63d9e31d29 - Show all commits
+8 -2
View File
@@ -32,9 +32,9 @@ const toggleSidebar = function toggleSidebar () {
</script>
<template>
<nav class="sidebar">
<nav class="sidebar" :class="{ expanded }">
<div class="sidebar-controls">
<SidebarExpandButton @click="toggleSidebar" />
<SidebarExpandButton @click="toggleSidebar" class="sidebar-expand-button" />
</div>
<div class="sidebar-content" v-if="props.expanded">
<slot />
@@ -56,6 +56,12 @@ const toggleSidebar = function toggleSidebar () {
margin-bottom: 8px;
}
@media (max-width: 48rem) {
.sidebar:not(.expanded) .sidebar-expand-button {
display: none;
}
}
.sidebar-content {
padding: 20px;
padding-top: 0;