From bf0dbc8545462e7910bde32c533593bb4826aef8 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 11 Nov 2026 23:37:48 -0500 Subject: [PATCH] fix: Show workspace logo as square in General settings (#14538) --- app/scenes/Settings/Details.tsx | 2 ++ app/scenes/Settings/components/ImageInput.tsx | 14 ++++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/scenes/Settings/Details.tsx b/app/scenes/Settings/Details.tsx index bfb3d72f05..def9a44b09 100644 --- a/app/scenes/Settings/Details.tsx +++ b/app/scenes/Settings/Details.tsx @@ -13,6 +13,7 @@ import type { CustomTheme } from "@shared/types"; import { TOCPosition, TeamPreference, UserPreference } from "@shared/types"; import { getBaseDomain } from "@shared/utils/domains"; import { TeamValidation } from "@shared/validations"; +import { AvatarVariant } from "~/components/Avatar/Avatar"; import Button from "~/components/Button"; import ButtonLink from "~/components/ButtonLink"; import DefaultCollectionInputSelect from "~/components/DefaultCollectionInputSelect"; @@ -221,6 +222,7 @@ function Details() { onError={handleAvatarError} model={team} borderRadius={0} + variant={AvatarVariant.Square} /> - + @@ -64,11 +67,14 @@ const avatarStyles = ` height: ${AvatarSize.Upload}px; `; -const ImageBox = styled(Flex)` +const ImageBox = styled(Flex)<{ $variant: AvatarVariant }>` ${avatarStyles}; position: relative; font-size: 14px; - border-radius: 50%; + border-radius: ${(props) => + props.$variant === AvatarVariant.Round + ? "50%" + : `${AvatarSize.Upload / 8}px`}; box-shadow: 0 0 0 1px ${s("backgroundSecondary")}; background: ${s("background")}; overflow: hidden;