From 1678cbd2792b3c4fa00c796bdf340ee08dbb7d23 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 11 Nov 2024 11:59:12 +0100 Subject: [PATCH] Fix hiding follow button --- src/frontend/components/instance_follow_button.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontend/components/instance_follow_button.rs b/src/frontend/components/instance_follow_button.rs index ea2b00c..6d56cea 100644 --- a/src/frontend/components/instance_follow_button.rs +++ b/src/frontend/components/instance_follow_button.rs @@ -29,12 +29,16 @@ pub fn InstanceFollowButton(instance: DbInstance) -> impl IntoView { "Follow instance" }; + let class_ = if instance.local { + "hidden" + } else { + "btn btn-sm" + }; view! {