Skip to content

Commit

Permalink
layout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Oct 18, 2024
1 parent 5989a71 commit ae142e1
Showing 1 changed file with 32 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ export function EditPluralOIDCClients({
display: 'flex',
flexDirection: 'column',
flexGrow: 1,
overflow: 'auto', // FIXME: Scroll only table.
position: 'relative',
overflow: 'auto',
}}
>
{isEmpty(oidcProviders) ? (
Expand All @@ -167,39 +168,46 @@ export function EditPluralOIDCClients({
}}
></EmptyState>
) : (
<Table
virtualizeRows
data={oidcProviders}
columns={columns}
hideHeader
hasNextPage={pageInfo?.hasNextPage}
fetchNextPage={fetchNextPage}
isFetchingNextPage={loading}
onVirtualSliceChange={setVirtualSlice}
reactVirtualOptions={DEFAULT_REACT_VIRTUAL_OPTIONS}
reactTableOptions={{ meta: { instanceName, useModalOverlay } }}
style={{
border: 'none',
borderBottomLeftRadius: 0,
borderBottomRightRadius: 0,
}}
css={{
td: {
backgroundColor: theme.colors['fill-one'],
borderColor: theme.colors['border-fill-two'],
},
}}
/>
<div css={{ backgroundColor: theme.colors['fill-one'], flexGrow: 1 }}>
<Table
virtualizeRows
data={oidcProviders}
columns={columns}
hideHeader
hasNextPage={pageInfo?.hasNextPage}
fetchNextPage={fetchNextPage}
isFetchingNextPage={loading}
onVirtualSliceChange={setVirtualSlice}
reactVirtualOptions={DEFAULT_REACT_VIRTUAL_OPTIONS}
reactTableOptions={{ meta: { instanceName, useModalOverlay } }}
style={{
border: 'none',
borderBottomLeftRadius: 0,
borderBottomRightRadius: 0,
}}
css={{
td: {
backgroundColor: theme.colors['fill-one'],
borderColor: theme.colors['border-fill-two'],
},
}}
/>
</div>
)}
<div
onClick={() => setCreateOpen(true)}
css={{
...theme.partials.text.body2Bold,
backgroundColor: theme.colors['fill-two'],
alignItems: 'center',
borderTop: theme.borders['fill-two'],
display: 'flex',
justifyContent: 'space-between',
padding: theme.spacing.small,
position: 'sticky',
bottom: 0,
right: 0,
left: 0,

'&:hover': {
backgroundColor: theme.colors['fill-one-hover'],
Expand Down

0 comments on commit ae142e1

Please sign in to comment.