Skip to content

Commit

Permalink
feat: hide scrollbar, update overlay menu
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Aug 30, 2023
1 parent 7a32ec4 commit 9919cca
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Collpase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
@tailwind components;
@tailwind utilities;
@tailwind variants;

::-webkit-scrollbar {
display: none;
}

0 comments on commit 9919cca

Please sign in to comment.