Skip to content

Commit 90fe85a

Browse files
committed
ui(pages): improve sidebar section headers
1 parent 5ba06d3 commit 90fe85a

File tree

4 files changed

+39
-41
lines changed

4 files changed

+39
-41
lines changed

apps/client/src/layouts/PagesLayout/LeftSidebar/CurrentPath.vue

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
<template>
2-
<q-toolbar style="padding: 0; background-color: #141414; min-height: 50px">
2+
<q-toolbar
3+
style="
4+
padding: 0;
5+
background-color: #141414;
6+
min-height: 0;
7+
overflow: hidden;
8+
"
9+
>
310
<DeepBtn
411
flat
5-
style="width: 100%; height: 50px; border-radius: 0"
12+
style="width: 100%; height: 32px; min-height: 0; border-radius: 0"
613
no-caps
714
@click="negateProp(uiStore(), 'currentPathExpanded')"
815
>
9-
<div style="width: 100%; display: flex; align-items: center">
10-
<q-avatar style="margin-left: -8px">
16+
<div style="width: 100%; height: 0; display: flex; align-items: center">
17+
<q-avatar style="margin-top: -1px; margin-left: -8px">
1118
<q-icon
1219
name="mdi-map-marker-radius"
13-
size="26px"
20+
size="20px"
1421
/>
1522
</q-avatar>
1623

@@ -19,30 +26,16 @@
1926
margin-left: -2px;
2027
text-align: left;
2128
color: rgba(255, 255, 255, 0.85);
22-
font-size: 15.2px;
29+
font-size: 13.5px;
2330
"
2431
>
2532
Current path
2633
</q-toolbar-title>
2734
</div>
28-
29-
<q-tooltip
30-
v-if="!uiStore().leftSidebarExpanded"
31-
anchor="center right"
32-
self="center left"
33-
max-width="200px"
34-
transition-show="jump-right"
35-
transition-hide="jump-left"
36-
>
37-
<div style="font-weight: bold; font-size: 14px">Current path</div>
38-
</q-tooltip>
3935
</DeepBtn>
4036
</q-toolbar>
4137

4238
<q-list
43-
:class="{
44-
mini: !uiStore().leftSidebarExpanded,
45-
}"
4639
style="
4740
height: 0;
4841
overflow-x: hidden;

apps/client/src/layouts/PagesLayout/LeftSidebar/LeftSidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636

3737
<script setup lang="ts">
3838
import { listenPointerEvents } from '@stdlib/misc';
39-
import CurrentPath from 'src/layouts/PagesLayout/LeftSidebar/CurrentPath.vue';
4039
40+
import CurrentPath from './CurrentPath.vue';
4141
import RecentPages from './RecentPages.vue';
4242
4343
function resizeLeftSidebar(event: PointerEvent) {

apps/client/src/layouts/PagesLayout/LeftSidebar/RecentPages.vue

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
<template>
2-
<q-toolbar style="padding: 0; background-color: #141414">
2+
<q-toolbar
3+
style="
4+
padding: 0;
5+
background-color: #141414;
6+
min-height: 0;
7+
overflow: hidden;
8+
"
9+
>
310
<DeepBtn
411
flat
5-
style="width: 100%; height: 50px; border-radius: 0"
12+
style="width: 100%; height: 32px; min-height: 0; border-radius: 0"
613
no-caps
714
@click="negateProp(uiStore(), 'recentPagesExpanded')"
815
>
9-
<div style="width: 100%; display: flex; align-items: center">
10-
<q-avatar style="margin-left: -8px">
16+
<div style="width: 100%; height: 0; display: flex; align-items: center">
17+
<q-avatar style="margin-top: -1px; margin-left: -8px">
1118
<q-icon
1219
name="mdi-history"
13-
size="26px"
20+
size="20px"
1421
/>
1522
</q-avatar>
1623

@@ -19,23 +26,12 @@
1926
margin-left: -2px;
2027
text-align: left;
2128
color: rgba(255, 255, 255, 0.85);
22-
font-size: 15.2px;
29+
font-size: 13.5px;
2330
"
2431
>
2532
Recent pages
2633
</q-toolbar-title>
2734
</div>
28-
29-
<q-tooltip
30-
v-if="!uiStore().leftSidebarExpanded"
31-
anchor="center right"
32-
self="center left"
33-
max-width="200px"
34-
transition-show="jump-right"
35-
transition-hide="jump-left"
36-
>
37-
<div style="font-weight: bold; font-size: 14px">Recent pages</div>
38-
</q-tooltip>
3935
</DeepBtn>
4036
</q-toolbar>
4137

apps/client/src/layouts/PagesLayout/RightSidebar/RightSidebar.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,20 @@
1616
max-width: 299px;
1717
"
1818
>
19-
<q-toolbar style="padding: 0; flex: none; background-color: #141414">
19+
<q-toolbar
20+
style="
21+
padding: 0;
22+
flex: none;
23+
background-color: #141414;
24+
height: 32px;
25+
min-height: 0;
26+
overflow: hidden;
27+
"
28+
>
2029
<q-avatar style="margin-left: 9px">
2130
<q-icon
2231
name="mdi-chart-box"
23-
size="26px"
32+
size="20px"
2433
/>
2534
</q-avatar>
2635

@@ -30,7 +39,7 @@
3039
margin-left: -2px;
3140
text-align: left;
3241
color: rgba(255, 255, 255, 0.85);
33-
font-size: 15.2px;
42+
font-size: 13.5px;
3443
"
3544
>
3645
<template v-if="page.activeElem.react.value?.type === 'note'">

0 commit comments

Comments
 (0)