Merge pull request #23071 from overleaf/rd-migrate-project-id-bs5

Migrate the admin project info page to Bootstrap 5

GitOrigin-RevId: 36ce714ca56e4aeea9f20a84fda6991fb53627c4
This commit is contained in:
Rebeka Dekany
2025-01-30 09:05:00 +00:00
committed by Copybot
parent af86239f03
commit 646e7c2ef0
2 changed files with 8 additions and 3 deletions
@@ -4,6 +4,7 @@ import classnames from 'classnames'
export function TableContainer({ export function TableContainer({
responsive, responsive,
bordered, bordered,
striped,
children, children,
}: React.ComponentProps<typeof BS5Table>) { }: React.ComponentProps<typeof BS5Table>) {
return ( return (
@@ -11,6 +12,7 @@ export function TableContainer({
className={classnames('table-container', { className={classnames('table-container', {
'table-container-bordered': bordered, 'table-container-bordered': bordered,
'table-responsive': responsive, 'table-responsive': responsive,
'table-striped': striped,
})} })}
> >
{children} {children}
@@ -26,11 +28,12 @@ function Table({
container = true, container = true,
responsive, responsive,
bordered, bordered,
striped,
...rest ...rest
}: TableProps) { }: TableProps) {
return container ? ( return container ? (
<TableContainer responsive={responsive} bordered={bordered}> <TableContainer responsive={responsive} bordered={bordered}>
<BS5Table {...rest} /> <BS5Table striped={striped} {...rest} />
</TableContainer> </TableContainer>
) : ( ) : (
<BS5Table {...rest} /> <BS5Table {...rest} />
@@ -29,7 +29,8 @@
margin-right: 0; margin-right: 0;
} }
a { a,
button {
border: 0; border: 0;
border-radius: 0; border-radius: 0;
color: var(--neutral-70); color: var(--neutral-70);
@@ -60,7 +61,8 @@
} }
} }
li > a.active { li > a.active,
li > button.active {
background-color: transparent !important; background-color: transparent !important;
border: 0 !important; border: 0 !important;
border-bottom: 3px solid var(--green-50) !important; border-bottom: 3px solid var(--green-50) !important;