fix ops dashboard mobile overflow

This commit is contained in:
cyber-art
2026-07-22 03:11:19 +08:00
parent 5a8d6c4e41
commit a8bfdc6f36
3 changed files with 70 additions and 14 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
<template>
<header class="glass sticky top-0 z-30 border-b border-gray-200/50 dark:border-dark-700/50">
<div class="flex h-16 items-center justify-between px-4 md:px-6">
<div class="flex h-16 items-center justify-between gap-2 px-2 sm:px-4 md:px-6">
<!-- Left: Mobile Menu Toggle + Page Title -->
<div class="flex items-center gap-4">
<div class="flex shrink-0 items-center gap-2 sm:gap-4">
<button
@click="toggleMobileSidebar"
class="btn-ghost btn-icon lg:hidden"
@@ -22,7 +22,7 @@
</div>
<!-- Right: Announcements + Docs + Language + Subscriptions + Balance + User Dropdown -->
<div class="flex items-center gap-3">
<div class="flex min-w-0 items-center gap-1 sm:gap-3">
<!-- Announcement Bell -->
<AnnouncementBell v-if="user" />
@@ -32,7 +32,7 @@
:href="docUrl"
target="_blank"
rel="noopener noreferrer"
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"
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"
>
<Icon name="book" size="sm" />
<span class="hidden sm:inline">{{ t('nav.docs') }}</span>