Skip to content

Commit 32b5284

Browse files
author
Bogdan Tsechoev
committed
Merge branch 'svg-icon-improvements' into 'dle-4-0'
fix(ui): Minor svg icon improvements See merge request postgres-ai/database-lab!998
2 parents 625ea0c + 8a40159 commit 32b5284

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

ui/packages/shared/pages/Logs/index.tsx

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const useStyles = makeStyles(
3232
'& > span': {
3333
display: 'flex',
3434
flexDirection: 'row',
35-
gap: '5px',
3635
alignItems: 'center',
3736
border: '1px solid #898E9A',
3837
padding: '3px 8px',
@@ -46,9 +45,13 @@ const useStyles = makeStyles(
4645
background: 'none',
4746
outline: 'none',
4847
border: 0,
49-
width: '18px',
50-
height: '18px',
48+
width: '100%',
49+
height: '100%',
50+
display: 'flex',
51+
alignItems: 'center',
5152
cursor: 'pointer',
53+
paddingBottom: 0,
54+
paddingRight: 0,
5255
},
5356
},
5457
// we need important since id has higher priority than class
@@ -82,6 +85,12 @@ const useStyles = makeStyles(
8285
transform: 'rotate(45deg) scale(0.75)',
8386
},
8487
},
88+
buttonClassName: {
89+
'& svg': {
90+
width: '14px',
91+
height: '14px',
92+
},
93+
},
8594
activeError: {
8695
border: '1px solid #F44336 !important',
8796
color: '#F44336 !important',
@@ -193,7 +202,11 @@ export const Logs = ({ api, instanceId }: { api: Api; instanceId: string }) => {
193202
}
194203
>
195204
<span>{type.toLowerCase()}</span>
196-
<button aria-label="close" type="button">
205+
<button
206+
aria-label="close"
207+
type="button"
208+
className={classes.buttonClassName}
209+
>
197210
<PlusIcon />
198211
</button>
199212
</span>

0 commit comments

Comments
 (0)