adaptive width on large

This commit is contained in:
Romulus21
2026-02-02 13:54:20 +01:00
parent 5748a32b59
commit 4db5519341

View File

@@ -110,8 +110,8 @@ fn Link<T: 'static + Clone, S: 'static>(
links: Resource<T, S>, links: Resource<T, S>,
) -> impl IntoView { ) -> impl IntoView {
view! { view! {
<li class="w-44 lg:w-60"> <li class="w-44 lg:w-fit">
<a class="bg-prim-light container flex flex-col lg:flex-row w-full item-center hover:scale-110 transition hover:bg-prim-lightest border-b hover:border-third border-transparent rounded-lg text-center hover:text-third px-5 py-4" <a class="bg-prim-light container flex flex-col lg:gap-2 lg:flex-row w-full item-center hover:scale-110 transition hover:bg-prim-lightest border-b hover:border-third border-transparent rounded-lg text-center hover:text-third px-5 py-4"
target="_blank" target="_blank"
href={move || link.with(|x| x.link.to_string())}> href={move || link.with(|x| x.link.to_string())}>
<img src={move || link.with(|x| x.icon.to_string())} <img src={move || link.with(|x| x.icon.to_string())}