diff --git a/src/assets/styles/global.less b/src/assets/styles/global.less index 4ca42c7..d20d613 100644 --- a/src/assets/styles/global.less +++ b/src/assets/styles/global.less @@ -38,6 +38,103 @@ html.theme-dark body { box-sizing: border-box; } +.page-layout, +.main-layout { + color: var(--td-text-color-primary); + background: var(--td-bg-color-page); + min-height: 100vh; + box-sizing: border-box; + + .page-content { + flex: 1; + inset: 0; + width: 100%; + display: flex; + overflow: hidden; + position: absolute; + min-height: 0; + padding-top: calc(env(safe-area-inset-top, 0px) + 48px + 1rem); + box-sizing: border-box; + padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); + flex-direction: column; + + &.scroll { + overflow: auto; + -webkit-overflow-scrolling: touch; + } + + &.column { + gap: .5rem; + display: flex; + flex-direction: column; + } + + .pull-refresh { + flex: 1; + min-height: 0; + overflow-x: hidden; + overflow-y: auto; + padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); + -webkit-overflow-scrolling: touch; + + .t-pull-down-refresh__track { + height: auto; + min-height: 100%; + } + + .filters { + --td-search-bg-color: var(--tui-white); + --td-search-square-radius: 1rem; + + top: -1rem; + margin: -1rem 0 1rem 0; + padding: 1rem 1rem 0 1rem; + z-index: 2; + position: sticky; + + [class*="__input-box"] { + border-color: var(--td-component-border); + } + + .tabs { + --td-tab-item-height: 32px; + } + } + } + } + + &.navbar { + --app-nav-height: calc(env(safe-area-inset-top, 0px) + 48px); + + .t-navbar__content { + color: var(--tui-black, #000); + overflow: visible; + box-shadow: 0 3px 8px rgba(0, 0, 0, .1); + background: rgba(250, 250, 250, .8); + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + } + + &.tabbar { + + .page-content.scroll, + .page-content.column { + padding-bottom: 5rem; + } + } + + .page-content.scroll.list { + padding-top: 0; + padding-bottom: 0; + + .pull-refresh { + padding-top: calc(48px + 1rem); + padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); + } + } + } +} + .loading { margin: 1rem auto; } diff --git a/src/components/NavBarActionMenu.vue b/src/components/NavBarActionMenu.vue deleted file mode 100644 index e58b016..0000000 --- a/src/components/NavBarActionMenu.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - - diff --git a/src/components/navbar/DefaultNavBar.vue b/src/components/navbar/DefaultNavBar.vue deleted file mode 100644 index 266ed44..0000000 --- a/src/components/navbar/DefaultNavBar.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - - - diff --git a/src/components/navbar/iOS26NavBar.vue b/src/components/navbar/iOS26NavBar.vue deleted file mode 100644 index f599c1a..0000000 --- a/src/components/navbar/iOS26NavBar.vue +++ /dev/null @@ -1,209 +0,0 @@ - - - - - diff --git a/src/components/navbar/index.vue b/src/components/navbar/index.vue deleted file mode 100644 index 9dbd614..0000000 --- a/src/components/navbar/index.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - diff --git a/src/layout/MainLayout.vue b/src/layout/MainLayout.vue index 6834a75..efb2cd3 100644 --- a/src/layout/MainLayout.vue +++ b/src/layout/MainLayout.vue @@ -1,11 +1,10 @@ diff --git a/src/pages/ai/AiChatPage.vue b/src/pages/ai/AiChatPage.vue index ca241cc..0b595aa 100644 --- a/src/pages/ai/AiChatPage.vue +++ b/src/pages/ai/AiChatPage.vue @@ -1,6 +1,26 @@