about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-05-20 18:48:56 +0300
committerGitHub <noreply@github.com>2025-05-20 18:48:56 +0300
commitc7101870944a34f874fd80b18c16e38e24d6b51b (patch)
tree65710ca8713bd21706f506ef90ca463730ad6a4e
parent29de23bbae85e768b0978179c24e215c8f4418ba (diff)
downloadvoidsky-c7101870944a34f874fd80b18c16e38e24d6b51b.tar.zst
fix hover card width (#8392)
-rw-r--r--src/components/ProfileHoverCard/index.web.tsx12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx
index 4f6545a2e..17148a1b3 100644
--- a/src/components/ProfileHoverCard/index.web.tsx
+++ b/src/components/ProfileHoverCard/index.web.tsx
@@ -381,8 +381,8 @@ let Card = ({
         t.atoms.bg,
         t.atoms.border_contrast_low,
         t.atoms.shadow_lg,
-        a.w_full,
-        {maxWidth: status.isActive ? 500 : 300},
+        {width: status.isActive ? 350 : 300},
+        a.max_w_full,
       ]}>
       {data && moderationOpts ? (
         status.isActive ? (
@@ -396,7 +396,13 @@ let Card = ({
           <Inner profile={data} moderationOpts={moderationOpts} hide={hide} />
         )
       ) : (
-        <View style={[a.justify_center, a.align_center, {minHeight: 200}]}>
+        <View
+          style={[
+            a.justify_center,
+            a.align_center,
+            {minHeight: 200},
+            a.w_full,
+          ]}>
           <Loader size="xl" />
         </View>
       )}