Skip to content

Commit 262f2ab

Browse files
committed
Frontend: Optimize page toolbar title styles in src/css/pages.css
Signed-off-by: Michael Mayer <michael@photoprism.app>
1 parent 6020b31 commit 262f2ab

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

frontend/src/component/album/toolbar.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
class="page-toolbar"
1414
color="secondary"
1515
>
16-
<v-toolbar-title :title="album.Title" class="flex-grow-1">
17-
<span class="hidden-xs">
16+
<v-toolbar-title :title="album.Title" class="page__title">
17+
<span v-if="$vuetify.display.smAndUp">
1818
<router-link :to="{ name: collectionRoute }">
1919
{{ T(collectionTitle) }}
2020
</router-link>
21-
<v-icon>{{ navIcon }}</v-icon>
21+
<v-icon :icon="navIcon"></v-icon>
22+
</span>
23+
<span class="clickable" @click.stop="$router.push({ name: collectionRoute })">
24+
{{ album.Title }}
2225
</span>
23-
{{ album.Title }}
2426
</v-toolbar-title>
2527

2628
<v-btn-toggle

frontend/src/css/pages.css

+19
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,25 @@
2424
padding: 30vh 24px;
2525
}
2626

27+
.p-page .v-toolbar-title {
28+
overflow: hidden;
29+
text-overflow: ellipsis;
30+
font-size: 1.125rem;
31+
font-weight: 500;
32+
letter-spacing: 0;
33+
line-height: 1.25rem;
34+
}
35+
36+
.p-page .page__title {
37+
display: flex;
38+
gap: 6px;
39+
align-items: center;
40+
flex-direction: row;
41+
flex-grow: 1;
42+
justify-content: start;
43+
flex-wrap: nowrap;
44+
}
45+
2746
.p-page-about {
2847
line-height: 1.5rem;
2948
}

0 commit comments

Comments
 (0)