mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 19:24: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 />
|
||||
|
||||
<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>
|
||||
<Show when={selectedEndpoint()}>
|
||||
<Route path="/overview" component={Overview} />
|
||||
|
@ -19,7 +19,7 @@ const Collapse: ParentComponent<Props> = (props) => {
|
||||
|
||||
const getCollapseContentClassName = () => {
|
||||
const openedClassName = 'opacity-100'
|
||||
const closedClassName = 'opacity-0 scale-y-0'
|
||||
const closedClassName = 'opacity-0'
|
||||
return props.isOpen ? openedClassName : closedClassName
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ const ThemeSwitcher = () => (
|
||||
<div class="drawer-side">
|
||||
<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}>
|
||||
{(theme) => (
|
||||
<li
|
||||
@ -120,7 +120,7 @@ export const Header = () => {
|
||||
<div class="drawer-side">
|
||||
<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()}>
|
||||
{({ href, name }) => (
|
||||
<li>
|
||||
|
@ -2,3 +2,7 @@
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
@tailwind variants;
|
||||
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user