Skip to content

Commit 0600103

Browse files
Merge pull request #419 from RedisInsight/fix/RI-2595_fix_divider
#RI-2595-fix divider style
2 parents 735a572 + fb413fe commit 0600103

File tree

1 file changed

+3
-2
lines changed
  • redisinsight/ui/src/pages/workbench/components/enablement-area/EnablementArea

1 file changed

+3
-2
lines changed

redisinsight/ui/src/pages/workbench/components/enablement-area/EnablementArea/EnablementArea.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const EnablementArea = ({
7272
const renderSwitch = (item: IEnablementAreaItem, sourcePath: string, level: number) => {
7373
const { label, type, children, id, args } = item
7474
const paddingsStyle = { paddingLeft: `${padding + level * 8}px`, paddingRight: `${padding}px` }
75+
const borderStyle = { border: 'none', borderTop: '1px solid var(--separatorColor)' }
7576
switch (type) {
7677
case EnablementAreaComponent.Group:
7778
return (
@@ -82,8 +83,8 @@ const EnablementArea = ({
8283
case EnablementAreaComponent.CodeButton:
8384
return (
8485
<>
85-
<div style={paddingsStyle} className="divider"><hr /></div>
86-
<div style={{ marginTop: '24px', ...paddingsStyle }}>
86+
<div style={paddingsStyle} className="divider"><hr style={borderStyle} /></div>
87+
<div style={{ marginTop: '18px', ...paddingsStyle }}>
8788
{args?.path
8889
? <LazyCodeButton label={label} {...args} />
8990
: <CodeButton onClick={() => openScript(args?.content || '')} label={label} {...args} />}

0 commit comments

Comments
 (0)