Skip to content

Commit

Permalink
feat: update header
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Aug 30, 2023
1 parent b60c855 commit 7a32ec4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Nav: ParentComponent<{ href: string; tooltip: string }> = ({
}) => (
<li>
<A
class="tooltip tooltip-bottom rounded-full"
class="tooltip rounded-box tooltip-bottom"
href={href}
data-tip={tooltip}
>
Expand Down Expand Up @@ -106,8 +106,8 @@ export const Header = () => {
}

return (
<ul class="navbar rounded-box sticky inset-x-0 top-2 z-10 mx-2 mt-2 flex w-auto items-center justify-center bg-base-200 p-2 sm:gap-2">
<div class="navbar-start">
<ul class="navbar rounded-box sticky inset-x-0 top-2 z-10 mx-2 mt-2 flex w-auto items-center justify-center bg-base-300 px-4">
<div class="navbar-start gap-4">
<div class="drawer w-auto lg:hidden">
<input id="navs" type="checkbox" class="drawer-toggle" />

Expand All @@ -120,7 +120,7 @@ export const Header = () => {
<div class="drawer-side">
<label for="navs" class="drawer-overlay" />

<ul class="menu rounded-box z-50 gap-2 bg-base-300 p-2 shadow">
<ul class="menu rounded-box z-50 min-h-full w-2/5 gap-2 bg-base-300 p-2 shadow">
<For each={navs()}>
{({ href, name }) => (
<li>
Expand All @@ -133,7 +133,7 @@ export const Header = () => {
</div>

<a
class="btn btn-ghost text-xl normal-case"
class="text-xl font-bold normal-case"
href="https://github.com/metacubex/metacubexd"
target="_blank"
>
Expand All @@ -143,7 +143,7 @@ export const Header = () => {

<Show when={location.pathname !== '/setup'}>
<div class="navbar-center hidden lg:flex">
<ul class="menu menu-horizontal px-1">
<ul class="menu menu-horizontal gap-2">
<For each={navs()}>
{({ href, name, icon }) => (
<Nav href={href} tooltip={name}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export default () => {
<tr>
<For each={headerGroup.headers}>
{(header) => (
<th>
<th class="bg-base-200">
<div
class={twMerge(
'flex items-center justify-between',
Expand Down

0 comments on commit 7a32ec4

Please sign in to comment.