Skip to content

Commit bfe6607

Browse files
committed
feat: 个人设置弹窗适配移动端
1 parent 59e683c commit bfe6607

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/AccountButton/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const isProfileShow = ref(false)
7373
</div>
7474
</FaButton>
7575
</FaDropdown>
76-
<FaModal v-model="isProfileShow" align-center :header="false" :footer="false" :close-on-click-overlay="false" :close-on-press-escape="false" class="h-500px min-w-600px overflow-hidden" content-class="min-h-full p-0 flex">
76+
<FaModal v-model="isProfileShow" align-center :header="false" :footer="false" :close-on-click-overlay="false" :close-on-press-escape="false" class="h-500px max-w-xl overflow-hidden" content-class="min-h-full p-0 flex">
7777
<Profile />
7878
</FaModal>
7979
</template>

src/components/AccountButton/profile.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const tabs = ref([
1616

1717
<template>
1818
<div class="min-h-full w-full">
19-
<div class="fixed inset-s-0 bottom-0 top-0 h-full w-40 border-e">
20-
<div v-for="(tab, index) in tabs" :key="index" class="cursor-pointer px-4 py-3 transition-background-color space-y-2 hover-bg-accent/50" :class="{ 'bg-accent hover-bg-accent!': active === index }" @click="active = index">
19+
<div class="fixed right-0 top-0 z-1 flex flex-row overflow-auto border-b border-e bg-background md:(inset-s-0 bottom-0 h-full w-40 flex-col)">
20+
<div v-for="(tab, index) in tabs" :key="index" class="flex-shrink-0 cursor-pointer px-4 py-3 transition-background-color space-y-2 hover-bg-accent/50" :class="{ 'bg-accent hover-bg-accent!': active === index }" @click="active = index">
2121
<div class="text-base text-accent-foreground leading-tight">
2222
{{ tab.title }}
2323
</div>
@@ -26,7 +26,7 @@ const tabs = ref([
2626
</div>
2727
</div>
2828
</div>
29-
<div class="ms-40 min-h-full flex-col-center p-10">
29+
<div class="min-h-full flex-col-center p-10 pt-20 md:(ms-40 pt-10)">
3030
<div v-if="active === 0">
3131
请开发者自行扩展
3232
</div>

0 commit comments

Comments
 (0)