Skip to content

Commit 78c8b0b

Browse files
committed
feat: ajouter un style de barre de défilement pour le mode sombre et améliorer le message d'avertissement pour les écrans petits
1 parent 8a1f3a6 commit 78c8b0b

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

apps/web/src/assets/sass/global.sass

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,14 @@ body.body--dark
163163

164164
& > .q-toolbar.bg-primary
165165
background-color: var(--q-color-primary, #1976d2)
166+
167+
body.body--dark
168+
::-webkit-scrollbar
169+
width: 8px
170+
171+
::-webkit-scrollbar-track
172+
background: #2e2e2e
173+
174+
::-webkit-scrollbar-thumb
175+
background-color: #555
176+
border-radius: 4px

apps/web/src/components/core/twopan.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ q-splitter.fit.q-custom-splitter.absolute.q-pa-sm(
6161
template(#separator)
6262
q-avatar(v-if='!isSimple' size="sm" color="primary" icon="mdi-unfold-more-vertical" class="text-white")
6363
template(#after)
64-
q-card.fit(flat bordered style='border-left: none;')
64+
q-card.fit.lr-sm(flat bordered v-if='!$q.screen.gt.xs')
65+
.flex.items-center.fit.justify-center
66+
div.text-center
67+
q-icon(name="mdi-alert-outline" color='negative' size="64px")
68+
div L'ecran est trop petit pour afficher les détails, tournez votre appareil en mode paysage ou changez la résolution de votre écran/la fenêtre.
69+
q-card.fit.gt-xs(flat bordered :style='{ borderLeft: !isSimple ? "none" : "" }')
6570
.flex.items-center.fit.justify-center(v-if='!targetId')
6671
div Selectionnez un élément pour voir ses détails ici.
6772
slot(name="after-content")

apps/web/src/pages/identities/table/[_id]/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
q-item-label(v-for='f in validations[field]' caption) - {{ f }}
1818
q-card-actions(align="right")
1919
q-btn(flat label="Fermer" color="primary" v-close-popup)
20-
q-toolbar-title Fiche identité
20+
q-toolbar-title.gt-xs Fiche identité
2121
q-separator(v-for='_ in 2' :key='_' vertical)
2222
q-toggle.q-pr-md.q-pl-xs(
2323
v-if="identity?._id"

0 commit comments

Comments
 (0)