Skip to content

Commit baff436

Browse files
committed
Make ResultListFrame more readable
1 parent 5ab93e7 commit baff436

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/app/pages/SearchResultsPage/ResultListFrame.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@ export const ResultListFrame: FC<{ children: React.ReactNode; networkForTheme: s
1313
const expectedTheme = scope?.network ?? fallbackTheme
1414

1515
return isMobile ? (
16-
<div
17-
className={cn(
18-
expectedTheme !== networkForTheme &&
19-
'[&_>_div_>_[data-slot="card"]]:rounded-none [&_>_div_>_[data-slot="card"]]:border-solid [&_>_div_>_[data-slot="card"]]:border-theme-layout-accent [&_>_div_>_[data-slot="card"]]:border-y-[10px] [&_>_div_>_[data-slot="card"]]:border-x',
20-
networkForTheme,
21-
)}
22-
>
16+
<div className={cn(expectedTheme !== networkForTheme && 'mobile-card-border-override', networkForTheme)}>
2317
{children}
2418
</div>
2519
) : (

src/styles/tailwind.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
--color-theme-contrast-main: #000062;
3737
}
3838

39+
.mobile-card-border-override > div > [data-slot='card'] {
40+
@apply rounded-none border-solid border-theme-layout-accent border-y-[10px] border-x;
41+
}
42+
3943
/* Specific fixes needed during migration to Oasis UI Library */
4044

4145
/* Override MUI styles that are applied globally */

0 commit comments

Comments
 (0)