diff --git a/static/css/console.css b/static/css/console.css index 79337b9..de81d26 100644 --- a/static/css/console.css +++ b/static/css/console.css @@ -518,3 +518,59 @@ input[type="number"] { outline-offset: 2px; border-radius: 4px; } + +/* ========================================================================== + Mobile Responsive Adaptations (Mobile Drawer, Fluid Tables & Safe Overflows) + ========================================================================== */ +.table-wrap { + -webkit-overflow-scrolling: touch; +} + +@media (max-width: 1023px) { + .console-app .sidebar { + transform: translateX(-100%); + transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); + z-index: 50; + box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1); + } + + .console-app .sidebar.open { + transform: translateX(0); + } + + .console-app .main-wrapper { + padding-left: 0 !important; + } + + .main-topbar { + padding-left: 1rem; + padding-right: 1rem; + } + + .topbar-breadcrumb { + max-width: calc(100vw - 160px); + } + + .batch-floating-toolbar { + width: calc(100% - 32px); + max-width: 480px; + bottom: 16px; + } +} + +@media (max-width: 640px) { + .table-filter-form .filter-input-text { + width: 100% !important; + } + + .table-filter-form select { + flex: 1 1 auto; + } + + .toast-container { + left: 1rem; + right: 1rem; + max-width: calc(100% - 2rem); + top: 1rem; + } +} diff --git a/templates/admin/overview.html b/templates/admin/overview.html index e6fbb3f..3fe8a17 100644 --- a/templates/admin/overview.html +++ b/templates/admin/overview.html @@ -56,14 +56,16 @@ - +
-
- 近 7 天 - 近 30 天 - 近 90 天 - 近 180 天 - 全周期 +
diff --git a/templates/admin/settings.html b/templates/admin/settings.html index 15043bd..8aa5ce8 100644 --- a/templates/admin/settings.html +++ b/templates/admin/settings.html @@ -9,29 +9,30 @@

管理服务全局开放状态、访问体验、平台凭据与默认参数配置。(修改自动保存生效)

- -
- - - - + +
+
+ + + + +
diff --git a/templates/base_console.html b/templates/base_console.html index 2507e3c..5945ef7 100644 --- a/templates/base_console.html +++ b/templates/base_console.html @@ -43,17 +43,25 @@ {% block body %} {% if g.user %}
- -
- -
+ +
{% for category, message in get_flashed_messages(with_categories=true) %} @@ -159,12 +167,19 @@
-
-
-