Skip to content

Commit 6ba5a30

Browse files
authored
Make Logs Scroll to Bottom Button Size Consistent (#1072)
- the button was smaller than the search bar unlike buttons on the collection/utilities pages - switch to an icon button too
1 parent 5ee81e3 commit 6ba5a30

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/pages/logs/LogsPage.tsx

+7-12
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useVirtualizer } from '@tanstack/react-virtual';
55
import cx from 'classnames';
66
import { throttle } from 'lodash';
77

8-
import Button from '@/components/Input/Button';
8+
import IconButton from '@/components/Input/IconButton';
99
import Input from '@/components/Input/Input';
1010
import { useLogsQuery } from '@/core/react-query/logs/queries';
1111

@@ -55,7 +55,7 @@ const LogsPage = () => {
5555
<div className="flex grow flex-col gap-y-6">
5656
<div className="flex items-center justify-between rounded-lg border border-panel-border bg-panel-background p-6">
5757
<div className="text-xl font-semibold">Logs</div>
58-
<div className="flex items-center gap-x-2">
58+
<div className="flex gap-x-2">
5959
<Input
6060
id="search"
6161
onChange={event => setSearch(event.target.value)}
@@ -67,21 +67,16 @@ const LogsPage = () => {
6767
disabled
6868
/>
6969
{/* TODO: Disabled until functionality is implemented */}
70-
{/* <Button buttonType="secondary" buttonSize="normal" tooltip="Filter"> */}
71-
{/* <Icon path={mdiFilterOutline} size={1} /> */}
72-
{/* </Button> */}
73-
{/* <Button buttonType="secondary" buttonSize="normal" tooltip="Settings"> */}
74-
{/* <Icon path={mdiCogOutline} size={1} /> */}
75-
{/* </Button> */}
76-
<Button
70+
{/* <IconButton icon={mdiFilterOutline} buttonType="secondary" buttonSize="normal" tooltip="Filter"/> */}
71+
{/* <IconButton icon={mdiCogOutline} buttonType="secondary" buttonSize="normal" tooltip="Settings"/> */}
72+
<IconButton
73+
icon={mdiArrowVerticalLock}
7774
buttonType="secondary"
7875
buttonSize="normal"
7976
className={cx(scrollToBottom ? 'text-panel-text-primary' : '!text-panel-text')}
8077
onClick={() => setScrollToBottom(prev => !prev)}
8178
tooltip={`${scrollToBottom ? 'Disable' : 'Enable'} scroll to bottom`}
82-
>
83-
<Icon path={mdiArrowVerticalLock} size={1} />
84-
</Button>
79+
/>
8580
</div>
8681
</div>
8782

0 commit comments

Comments
 (0)