1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2025-01-25 21:55:51 +00:00

Fixes for mobile navbar

This commit is contained in:
Felix Ableitner 2024-12-12 09:46:54 +01:00
parent e6cdb860cf
commit 1e3d7ba58e
2 changed files with 7 additions and 8 deletions

View file

@ -72,7 +72,11 @@ axum = "0.7.7"
axum-macros = "0.4.2" axum-macros = "0.4.2"
axum-extra = { version = "0.9.4", features = ["cookie"] } axum-extra = { version = "0.9.4", features = ["cookie"] }
tokio = { version = "1.41.1", features = ["full"] } tokio = { version = "1.41.1", features = ["full"] }
tower-http = { version = "0.6.1", features = ["cors", "fs", "compression-full"] } tower-http = { version = "0.6.1", features = [
"cors",
"fs",
"compression-full",
] }
activitypub_federation = { version = "0.6.0", features = [ activitypub_federation = { version = "0.6.0", features = [
"axum", "axum",
"diesel", "diesel",

View file

@ -20,14 +20,12 @@ pub fn Nav() -> impl IntoView {
let (search_query, set_search_query) = signal(String::new()); let (search_query, set_search_query) = signal(String::new());
let mut dark_mode = expect_context::<DarkMode>(); let mut dark_mode = expect_context::<DarkMode>();
view! { view! {
<nav class="p-2.5 h-full border-b border-solid md:fixed md:w-64 max-sm:navbar max-sm: border-slate-400 md:border-e"> <nav class="p-2.5 border-b border-solid md:fixed md:w-64 md:h-full max-sm:navbar max-sm: border-slate-400 md:border-e">
<div <div
id="navbar-start" id="navbar-start"
class="md:h-full max-sm:navbar-start max-sm:flex max-sm:dropdown max-sm:dropdown-bottom max-sm:dropdown-end max-sm:w-full" class="md:h-full max-sm:navbar-start max-sm:flex max-sm:dropdown max-sm:dropdown-bottom max-sm:dropdown-end max-sm:w-full"
> >
<h1 class="w-min font-serif text-3xl font-bold md:hidden"> <h1 class="w-min font-serif text-3xl font-bold md:hidden">Ibis</h1>
{CLIENT.hostname.clone()}
</h1>
<div class="flex-grow md:hidden"></div> <div class="flex-grow md:hidden"></div>
<button tabindex="0" class="lg:hidden btn btn-outline"> <button tabindex="0" class="lg:hidden btn btn-outline">
Menu Menu
@ -40,9 +38,6 @@ pub fn Nav() -> impl IntoView {
<a href="/"> <a href="/">
<img src="/logo.png" class="m-auto max-sm:hidden" /> <img src="/logo.png" class="m-auto max-sm:hidden" />
</a> </a>
<h1 class="py-2 px-4 font-serif text-3xl font-bold sm:hidden">
{CLIENT.hostname.clone()}
</h1>
<ul> <ul>
<li> <li>
<a href="/">"Main Page"</a> <a href="/">"Main Page"</a>