mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 07:34:12 +08:00
feat: hide scrollbar, update overlay menu
This commit is contained in:
parent
7a32ec4fe3
commit
9919cca00e
@ -27,7 +27,7 @@ export const App = () => {
|
|||||||
>
|
>
|
||||||
<Header />
|
<Header />
|
||||||
|
|
||||||
<div class="flex-1 overflow-y-auto p-4">
|
<div class="flex-1 overflow-y-auto overflow-x-hidden p-2 sm:p-4">
|
||||||
<Routes>
|
<Routes>
|
||||||
<Show when={selectedEndpoint()}>
|
<Show when={selectedEndpoint()}>
|
||||||
<Route path="/overview" component={Overview} />
|
<Route path="/overview" component={Overview} />
|
||||||
|
@ -19,7 +19,7 @@ const Collapse: ParentComponent<Props> = (props) => {
|
|||||||
|
|
||||||
const getCollapseContentClassName = () => {
|
const getCollapseContentClassName = () => {
|
||||||
const openedClassName = 'opacity-100'
|
const openedClassName = 'opacity-100'
|
||||||
const closedClassName = 'opacity-0 scale-y-0'
|
const closedClassName = 'opacity-0'
|
||||||
return props.isOpen ? openedClassName : closedClassName
|
return props.isOpen ? openedClassName : closedClassName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ const ThemeSwitcher = () => (
|
|||||||
<div class="drawer-side">
|
<div class="drawer-side">
|
||||||
<label for="themes" class="drawer-overlay" />
|
<label for="themes" class="drawer-overlay" />
|
||||||
|
|
||||||
<ul class="menu rounded-box z-50 gap-2 bg-base-300 p-2 shadow">
|
<ul class="menu rounded-box gap-2 bg-base-300 p-2 shadow">
|
||||||
<For each={themes}>
|
<For each={themes}>
|
||||||
{(theme) => (
|
{(theme) => (
|
||||||
<li
|
<li
|
||||||
@ -120,7 +120,7 @@ export const Header = () => {
|
|||||||
<div class="drawer-side">
|
<div class="drawer-side">
|
||||||
<label for="navs" class="drawer-overlay" />
|
<label for="navs" class="drawer-overlay" />
|
||||||
|
|
||||||
<ul class="menu rounded-box z-50 min-h-full w-2/5 gap-2 bg-base-300 p-2 shadow">
|
<ul class="menu rounded-box min-h-full w-2/5 gap-2 bg-base-300 pt-20 shadow">
|
||||||
<For each={navs()}>
|
<For each={navs()}>
|
||||||
{({ href, name }) => (
|
{({ href, name }) => (
|
||||||
<li>
|
<li>
|
||||||
|
@ -2,3 +2,7 @@
|
|||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
@tailwind variants;
|
@tailwind variants;
|
||||||
|
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user