From 207676770df76702781342035d9cdfd196ae8b8e Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 5 Mar 2026 20:53:29 +0200 Subject: [PATCH] Fix /calendar/new styling --- app/features/calendar/calendar-new.module.css | 8 --- .../BracketProgressionSelector.module.css | 11 ++++ .../components/BracketProgressionSelector.tsx | 5 +- app/features/calendar/routes/calendar.new.tsx | 66 ++++++------------- 4 files changed, 34 insertions(+), 56 deletions(-) create mode 100644 app/features/calendar/components/BracketProgressionSelector.module.css diff --git a/app/features/calendar/calendar-new.module.css b/app/features/calendar/calendar-new.module.css index b99606365..74872c75d 100644 --- a/app/features/calendar/calendar-new.module.css +++ b/app/features/calendar/calendar-new.module.css @@ -1,11 +1,3 @@ -.container { - max-width: 38rem; -} - -.select { - max-width: 16rem; -} - .badges { width: max-content; padding: var(--s-2); diff --git a/app/features/calendar/components/BracketProgressionSelector.module.css b/app/features/calendar/components/BracketProgressionSelector.module.css new file mode 100644 index 000000000..e65abcf1c --- /dev/null +++ b/app/features/calendar/components/BracketProgressionSelector.module.css @@ -0,0 +1,11 @@ +.count { + color: var(--color-accent-high); + font-size: var(--font-sm); + white-space: nowrap; +} + +.divider { + background-color: var(--color-accent-high); + width: 2px; + align-self: stretch; +} diff --git a/app/features/calendar/components/BracketProgressionSelector.tsx b/app/features/calendar/components/BracketProgressionSelector.tsx index 83eed6262..b33a4b844 100644 --- a/app/features/calendar/components/BracketProgressionSelector.tsx +++ b/app/features/calendar/components/BracketProgressionSelector.tsx @@ -12,6 +12,7 @@ import { TOURNAMENT } from "~/features/tournament/tournament-constants"; import * as Progression from "~/features/tournament-bracket/core/Progression"; import * as Swiss from "~/features/tournament-bracket/core/Swiss"; import { defaultBracketSettings } from "../../tournament/tournament-utils"; +import styles from "./BracketProgressionSelector.module.css"; const defaultBracket = (): Progression.InputBracket => ({ id: nanoid(), @@ -189,7 +190,7 @@ function TournamentFormatBracketSelector({ return (
-
Bracket #{count}
+
Bracket #{count}
{onDelete ? ( ) : null}
-
+
diff --git a/app/features/calendar/routes/calendar.new.tsx b/app/features/calendar/routes/calendar.new.tsx index 28b957176..c26fa57e9 100644 --- a/app/features/calendar/routes/calendar.new.tsx +++ b/app/features/calendar/routes/calendar.new.tsx @@ -83,7 +83,7 @@ export default function CalendarNewEventPage() { if (!data.eventToEdit && !isCalendarEventAdder) { return ( -
+
You can't add a new event at this time (Discord account too young) @@ -97,7 +97,7 @@ export default function CalendarNewEventPage() { data.organizations.length === 0 ) { return ( -
+
No permissions to add tournaments. Tournaments are in beta, accessible by Patreon supporters and established TO's. See{" "} @@ -108,7 +108,7 @@ export default function CalendarNewEventPage() { } return ( -
+

@@ -145,7 +145,6 @@ function TemplateTournamentForm() {
)} @@ -268,7 +267,7 @@ function EventForm() { )} {data.isAddingTournament ? (
- Tournament format + Tournament format +
{t("calendar:forms.dates")} * @@ -576,7 +575,7 @@ function DiscordLinkInput() { const [value, setValue] = React.useState(baseEvent?.discordInviteCode ?? ""); return ( -
+
{t("calendar:forms.tags")} { setBadges([ ...badges, @@ -813,9 +810,7 @@ function RankedToggle() { return (
- + - + - + - + - + - + - + - + - + - +