Move hamburger menu to right side of navbar
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
|||||||
<!-- Tailwind/DaisyUI class safelist for gniza WHM plugin -->
|
<!-- Tailwind/DaisyUI class safelist for gniza WHM plugin -->
|
||||||
<div class="alert alert-error alert-info alert-success alert-warning badge badge-error badge-sm badge-success badge-warning bg-base-100 bg-base-200 bg-neutral bg-primary/10 border border-base-300 border-base-content/5 breadcrumbs btn btn-error btn-ghost btn-info btn-primary btn-secondary btn-sm btn-xs card card-body card-title checkbox checkbox-sm collapse collapse-arrow collapse-content collapse-title cursor-pointer flex flex-1 flex-col flex-wrap font-bold font-medium font-mono font-semibold gap-1 gap-2 gap-3 hidden inline input input-bordered input-sm items-center items-start mx-auto join join-item link list-disc loading loading-spinner loading-xs max-h-48 max-w-2xl max-w-xs mb-1 mb-2.5 mb-3 mb-4 mb-5 mb-6 ml-2 modal modal-action modal-backdrop modal-box mt-2 mt-3 mt-4 mt-5 my-2 my-4 overflow-x-auto overflow-y-auto p-3 p-4 pt-1 pt-2 pl-5 px-4 py-1 py-3 py-4 radio radio-sm rounded-box rounded-lg select select-bordered select-sm shadow-sm steps tab tab-content table hover tabs tabs-box tabs-lg tab-active text-center text-error text-lg textarea textarea-bordered textarea-sm text-base-content/60 text-neutral-content text-sm text-xl text-xs toggle toggle-sm toggle-success w-11/12 w-44 w-full whitespace-pre-wrap font-sans text-[1.6rem] text-warning badge-info badge-neutral btn-active leading-relaxed inline-flex items-stretch w-fit bg-[#fafafa] px-5 max-h-[360px] m-0 no-underline bg-white p-2.5 animate-pulse badge-outline btn-warning btn-circle mt-1 h-40 tooltip tooltip-top w-52 whitespace-nowrap navbar navbar-start navbar-end menu menu-horizontal h-12 w-auto text-3xl leading-none text-secondary active stat stat-title stat-value stat-desc stat-figure grid-cols-3 grid-cols-2 sm:grid-cols-3 badge-lg grid gap-4 lg:hidden lg:flex dropdown dropdown-content h-5 w-5 p-2"></div>
|
<div class="alert alert-error alert-info alert-success alert-warning badge badge-error badge-sm badge-success badge-warning bg-base-100 bg-base-200 bg-neutral bg-primary/10 border border-base-300 border-base-content/5 breadcrumbs btn btn-error btn-ghost btn-info btn-primary btn-secondary btn-sm btn-xs card card-body card-title checkbox checkbox-sm collapse collapse-arrow collapse-content collapse-title cursor-pointer flex flex-1 flex-col flex-wrap font-bold font-medium font-mono font-semibold gap-1 gap-2 gap-3 hidden inline input input-bordered input-sm items-center items-start mx-auto join join-item link list-disc loading loading-spinner loading-xs max-h-48 max-w-2xl max-w-xs mb-1 mb-2.5 mb-3 mb-4 mb-5 mb-6 ml-2 modal modal-action modal-backdrop modal-box mt-2 mt-3 mt-4 mt-5 my-2 my-4 overflow-x-auto overflow-y-auto p-3 p-4 pt-1 pt-2 pl-5 px-4 py-1 py-3 py-4 radio radio-sm rounded-box rounded-lg select select-bordered select-sm shadow-sm steps tab tab-content table hover tabs tabs-box tabs-lg tab-active text-center text-error text-lg textarea textarea-bordered textarea-sm text-base-content/60 text-neutral-content text-sm text-xl text-xs toggle toggle-sm toggle-success w-11/12 w-44 w-full whitespace-pre-wrap font-sans text-[1.6rem] text-warning badge-info badge-neutral btn-active leading-relaxed inline-flex items-stretch w-fit bg-[#fafafa] px-5 max-h-[360px] m-0 no-underline bg-white p-2.5 animate-pulse badge-outline btn-warning btn-circle mt-1 h-40 tooltip tooltip-top w-52 whitespace-nowrap navbar navbar-start navbar-end menu menu-horizontal h-12 w-auto text-3xl leading-none text-secondary active stat stat-title stat-value stat-desc stat-figure grid-cols-3 grid-cols-2 sm:grid-cols-3 badge-lg grid gap-4 lg:hidden lg:flex dropdown dropdown-content dropdown-end h-5 w-5 p-2"></div>
|
||||||
|
|||||||
@@ -65,13 +65,6 @@ sub render_nav {
|
|||||||
|
|
||||||
my $html = qq{<div class="navbar bg-base-200 rounded-box mb-5">\n};
|
my $html = qq{<div class="navbar bg-base-200 rounded-box mb-5">\n};
|
||||||
$html .= qq{ <div class="navbar-start">\n};
|
$html .= qq{ <div class="navbar-start">\n};
|
||||||
# Mobile dropdown (visible on small screens)
|
|
||||||
$html .= qq{ <details class="dropdown lg:hidden">\n};
|
|
||||||
$html .= qq{ <summary class="btn btn-ghost btn-sm"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /></svg></summary>\n};
|
|
||||||
$html .= qq{ <ul class="dropdown-content menu bg-base-200 rounded-box shadow-sm mt-2 w-52 p-2">\n};
|
|
||||||
$html .= qq{ $menu_items};
|
|
||||||
$html .= qq{ </ul>\n};
|
|
||||||
$html .= qq{ </details>\n};
|
|
||||||
$html .= qq{ $logo\n} if $logo;
|
$html .= qq{ $logo\n} if $logo;
|
||||||
$html .= qq{ </div>\n};
|
$html .= qq{ </div>\n};
|
||||||
$html .= qq{ <div class="navbar-end hidden lg:flex">\n};
|
$html .= qq{ <div class="navbar-end hidden lg:flex">\n};
|
||||||
@@ -79,6 +72,15 @@ sub render_nav {
|
|||||||
$html .= qq{ $menu_items};
|
$html .= qq{ $menu_items};
|
||||||
$html .= qq{ </ul>\n};
|
$html .= qq{ </ul>\n};
|
||||||
$html .= qq{ </div>\n};
|
$html .= qq{ </div>\n};
|
||||||
|
# Mobile dropdown (visible on small screens, right-aligned)
|
||||||
|
$html .= qq{ <div class="navbar-end lg:hidden">\n};
|
||||||
|
$html .= qq{ <details class="dropdown dropdown-end">\n};
|
||||||
|
$html .= qq{ <summary class="btn btn-ghost btn-sm"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /></svg></summary>\n};
|
||||||
|
$html .= qq{ <ul class="dropdown-content menu bg-base-200 rounded-box shadow-sm mt-2 w-52 p-2">\n};
|
||||||
|
$html .= qq{ $menu_items};
|
||||||
|
$html .= qq{ </ul>\n};
|
||||||
|
$html .= qq{ </details>\n};
|
||||||
|
$html .= qq{ </div>\n};
|
||||||
$html .= qq{</div>\n};
|
$html .= qq{</div>\n};
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user