💄 Docker module improvements

Added a keybind, made the text bigger, offeset the scrollbar, made the table take more space
This commit is contained in:
ajnart
2023-01-23 23:56:38 +09:00
parent 9d5948e122
commit b770b06ed8
2 changed files with 17 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ import {
ScrollArea,
TextInput,
useMantineTheme,
Text,
} from '@mantine/core';
import { useElementSize } from '@mantine/hooks';
import { IconSearch } from '@tabler/icons';
@@ -78,8 +79,16 @@ export default function DockerTable({
transitionDuration={0}
/>
</td>
<td>{element.Names[0].replace('/', '')}</td>
{width > MIN_WIDTH_MOBILE && <td>{element.Image}</td>}
<td>
<Text size="lg" weight={600}>
{element.Names[0].replace('/', '')}
</Text>
</td>
{width > MIN_WIDTH_MOBILE && (
<td>
<Text size="lg">{element.Image}</Text>
</td>
)}
{width > MIN_WIDTH_MOBILE && (
<td>
<Group>
@@ -111,12 +120,13 @@ export default function DockerTable({
});
return (
<ScrollArea style={{ height: '80vh' }}>
<ScrollArea style={{ height: '90vh' }} offsetScrollbars>
<TextInput
placeholder={t('search.placeholder')}
mt="md"
mr="md"
icon={<IconSearch size={14} />}
value={search}
autoFocus
onChange={handleSearchChange}
/>
<Table ref={ref} captionSide="bottom" highlightOnHover verticalSpacing="sm">