Skip to content

Commit 2bdbedc

Browse files
committed
Fixed layout bug in the alerts page if you don’t have any alerts set
1 parent 332166a commit 2bdbedc

File tree

1 file changed

+2
-7
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.alerts

1 file changed

+2
-7
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.alerts/route.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,7 @@ export default function Page() {
171171
</PageAccessories>
172172
</NavBar>
173173
<PageBody scrollable={false}>
174-
<div
175-
className={cn(
176-
"grid max-h-full min-h-full",
177-
alertChannels.length === 0 ? "grid-rows-[1fr_auto]" : "grid-rows-[auto_1fr_auto]"
178-
)}
179-
>
174+
<div className="grid max-h-full min-h-full grid-rows-[auto_1fr_auto]">
180175
<div className="flex h-fit items-end justify-between p-2 pl-3">
181176
<Header2 className="">Project alerts</Header2>
182177
{alertChannels.length > 0 && !requiresUpgrade && (
@@ -190,7 +185,7 @@ export default function Page() {
190185
</LinkButton>
191186
)}
192187
</div>
193-
<Table containerClassName={cn(alertChannels.length === 0 && "border-t-0")}>
188+
<Table>
194189
<TableHeader>
195190
<TableRow>
196191
<TableHeaderCell>Name</TableHeaderCell>

0 commit comments

Comments
 (0)