ui(header): 手机竖屏顶栏保留模型广场图标入口

模型广场入口所有宽度都渲染,<640px 只保留图标,补 title/aria-label
This commit is contained in:
feeeei
2026-09-18 09:52:40 +08:00
parent efe9aab1e4
commit a9c7c6e8bf
+4 -2
View File
@@ -38,11 +38,13 @@
<span class="hidden sm:inline">{{ t('nav.docs') }}</span>
</a>
<!-- Model Plaza Entry -->
<!-- Model Plaza Entry (icon only below sm) -->
<router-link
v-if="user && modelPlazaEnabled"
:to="{ path: '/model-plaza', query: { embedded: '1' } }"
class="hidden items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-100 hover:text-gray-900 dark:text-dark-400 dark:hover:bg-dark-800 dark:hover:text-white sm:flex"
:title="t('nav.modelPlaza')"
:aria-label="t('nav.modelPlaza')"
class="flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-100 hover:text-gray-900 dark:text-dark-400 dark:hover:bg-dark-800 dark:hover:text-white"
>
<Icon name="grid" size="sm" />
<span class="hidden sm:inline">{{ t('nav.modelPlaza') }}</span>