From 5f1a4db7e1a9a923e6f256f0cbf610456dbc34ba Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 25 Nov 2025 17:37:58 +0100 Subject: [PATCH] fix regression that broke some ui spacing --- src/components/Flex.tsx | 4 +++- src/components/settings/tabs/themes/ThemeCard.tsx | 2 +- src/plugins/_api/badges/index.tsx | 4 ++-- src/plugins/customRPC/index.tsx | 2 +- src/plugins/decor/ui/components/DecorSection.tsx | 2 +- src/plugins/decor/ui/modals/GuidelinesModal.tsx | 2 +- .../components/RolesAndUsersPermissions.tsx | 2 +- src/plugins/reverseImageSearch/index.tsx | 4 ++-- src/plugins/showConnections/index.tsx | 5 +---- src/plugins/spotifyControls/PlayerComponent.tsx | 2 +- src/plugins/startupTimings/StartupTimingPage.tsx | 2 +- src/plugins/textReplace/index.tsx | 2 +- 12 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/components/Flex.tsx b/src/components/Flex.tsx index 065ddac7..9dcaa803 100644 --- a/src/components/Flex.tsx +++ b/src/components/Flex.tsx @@ -23,9 +23,10 @@ export interface FlexProps extends HTMLAttributes { gap?: CSSProperties["gap"]; justifyContent?: CSSProperties["justifyContent"]; alignItems?: CSSProperties["alignItems"]; + flexWrap?: CSSProperties["flexWrap"]; } -export function Flex({ flexDirection, gap = "1em", justifyContent, alignItems, children, style, ...restProps }: FlexProps) { +export function Flex({ flexDirection, gap = "1em", justifyContent, alignItems, flexWrap, children, style, ...restProps }: FlexProps) { style ??= {}; Object.assign(style, { display: "flex", @@ -33,6 +34,7 @@ export function Flex({ flexDirection, gap = "1em", justifyContent, alignItems, c gap, justifyContent, alignItems, + flexWrap }); return ( diff --git a/src/components/settings/tabs/themes/ThemeCard.tsx b/src/components/settings/tabs/themes/ThemeCard.tsx index 5d9b117b..c86bbb5e 100644 --- a/src/components/settings/tabs/themes/ThemeCard.tsx +++ b/src/components/settings/tabs/themes/ThemeCard.tsx @@ -35,7 +35,7 @@ export function ThemeCard({ theme, enabled, onChange, onDelete }: ThemeCardProps ) } footer={ - + {!!theme.website && Website} {!!(theme.website && theme.invite) && " • "} {!!theme.invite && ( diff --git a/src/plugins/_api/badges/index.tsx b/src/plugins/_api/badges/index.tsx index d3109b75..f8ba1aa1 100644 --- a/src/plugins/_api/badges/index.tsx +++ b/src/plugins/_api/badges/index.tsx @@ -213,7 +213,7 @@ export default definePlugin({ margin: 0 }} > - + Vencord Donor @@ -244,7 +244,7 @@ export default definePlugin({ - + diff --git a/src/plugins/customRPC/index.tsx b/src/plugins/customRPC/index.tsx index 90df95c2..db541b84 100644 --- a/src/plugins/customRPC/index.tsx +++ b/src/plugins/customRPC/index.tsx @@ -255,7 +255,7 @@ export default definePlugin({ )} - + Go to the Discord Developer Portal to create an application and get the application ID. diff --git a/src/plugins/decor/ui/components/DecorSection.tsx b/src/plugins/decor/ui/components/DecorSection.tsx index 5fe6cba5..3209b435 100644 --- a/src/plugins/decor/ui/components/DecorSection.tsx +++ b/src/plugins/decor/ui/components/DecorSection.tsx @@ -35,7 +35,7 @@ export default function DecorSection({ hideTitle = false, hideDivider = false, n hideDivider={hideDivider} className={noMargin && cl("section-remove-margin")} > - +