Skip to content

Commit 0224348

Browse files
committed
fix(responsive): hide account name on small screens
1 parent 1974680 commit 0224348

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

src/components/common/navbar/NavbarComponent.vue

+1
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ const onTouchEnd = (e: TouchEvent) => {
239239
v-if="navElement"
240240
:parent-element="navElement"
241241
:routes="overflowRoutes"
242+
:compact="isCompact"
242243
/>
243244
</NTab>
244245
</NTabs>

src/components/common/navbar/NavbarSettingsDopdown.vue

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ const { routes } = defineProps({
5757
required: false,
5858
default: () => [],
5959
},
60+
compact: {
61+
type: Boolean,
62+
required: false,
63+
default: false,
64+
},
6065
});
6166
6267
const users = computed(() => {
@@ -171,6 +176,7 @@ const placement = computed(() => {
171176
>
172177
<NFlex justify="space-around" align="center" :wrap="false">
173178
<NEllipsis
179+
v-if="!compact"
174180
style="max-width: calc(100vw / 6 - 0.25rem - 3px - 1.75rem); margin-left: 0.25rem"
175181
:tooltip="{
176182
to: parentElement,

src/components/views/search/SearchNavbar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ onActivated(() => {
350350
margin-top: 12px;
351351
}
352352
353-
@media (width < 400px) {
353+
@media (width < 500px) {
354354
.n-auto-complete.search-input .n-input-wrapper .n-base-loading.n-base-suffix {
355355
display: none;
356356
background-color: red;

src/stores/app-state.store.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export const useAppStateStore = defineStore('app.state', () => {
4040

4141
const { bottom, minimum, floating } = watchBreakpoint(
4242
appRef,
43-
{ bottom: 400, minimum: 800, floating: 1000 },
43+
{ bottom: 500, minimum: 800, floating: 1000 },
4444
{
45-
bottom: { width: window.innerWidth < 400 },
45+
bottom: { width: window.innerWidth < 500 },
4646
minimum: { width: window.innerWidth < 800 },
4747
floating: { width: window.innerWidth < 1000 },
4848
},

0 commit comments

Comments
 (0)