Skip to content

Commit 072b89e

Browse files
authored
Core: Fix the overlapping search icon and spacing in the course card view (#2087)
* Core: Stop the search icon from overlapping the course search placeholder Every remote injects its own full Tailwind build through style-loader, and those styles land after the core styles. The remotes never use pl-9, so their .px-3 wins over it and the placeholder falls back under the icon. * Core: Align the course card view with the surrounding page layout The card view wrapped itself in a centered container with its own vertical padding, which pushed the search field away from the page header and kept the grid narrower than the table view of the same page.
1 parent fb2c10e commit 072b89e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • clients/core/src/managementConsole/shared/components/CourseCard

clients/core/src/managementConsole/shared/components/CourseCard/CourseCards.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ export const CourseCards = ({ courses }: CourseCardsProps) => {
2121
}, [courses, query])
2222

2323
return (
24-
<div className='container mx-auto px-4 py-8'>
25-
<div className='relative mb-8 max-w-md'>
24+
<div className='flex flex-col gap-6'>
25+
<div className='relative max-w-md'>
2626
<Search className='pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground' />
27+
{/* Remotes ship their own Tailwind build, so an unprefixed pl-9 loses to their .px-3 */}
2728
<Input
2829
type='search'
2930
aria-label='Search courses'
3031
placeholder='Search courses...'
3132
value={search}
3233
onChange={(event) => setSearch(event.target.value)}
33-
className='pl-9'
34+
className='pl-9!'
3435
/>
3536
</div>
3637

0 commit comments

Comments
 (0)