feat: update styles for toolbar (#4824)

This commit is contained in:
Yunus M 2024-04-08 10:52:58 +05:30 committed by GitHub
parent 7f4a61ffb1
commit d6cd155988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 31 additions and 13 deletions

View File

@ -37,7 +37,6 @@
}
}
.explorer-options {
position: fixed;
bottom: 24px;
@ -78,11 +77,9 @@
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
border: none;
border: 1px solid #1d2023;
color: #c0c1c3;
background-color: #161922;
box-shadow: none !important;

View File

@ -373,26 +373,41 @@ function ExplorerOptions({
onClick={handleSaveViewModalToggle}
className={isEditDeleteSupported ? '' : 'hidden'}
disabled={viewsIsLoading || isRefetching}
icon={<Disc3 size={16} />}
>
<Disc3 size={16} /> Save this view
Save this view
</Button>
</div>
<hr className={isEditDeleteSupported ? '' : 'hidden'} />
<div className={cx('actions', isEditDeleteSupported ? '' : 'hidden')}>
<Button disabled={disabled} shape="round" onClick={onCreateAlertsHandler}>
<ConciergeBell size={16} /> Create an Alert
<Button
disabled={disabled}
shape="round"
onClick={onCreateAlertsHandler}
icon={<ConciergeBell size={16} />}
>
Create an Alert
</Button>
<Button disabled={disabled} shape="round" onClick={onAddToDashboard}>
<Plus size={16} /> Add to Dashboard
<Button
type="primary"
disabled={disabled}
shape="round"
onClick={onAddToDashboard}
icon={<Plus size={16} />}
>
Add to Dashboard
</Button>
<Tooltip title="Hide">
<Button disabled={disabled} shape="circle" onClick={hideToolbar}>
<PanelBottomClose size={16} />
</Button>
<Button
disabled={disabled}
shape="circle"
onClick={hideToolbar}
icon={<PanelBottomClose size={16} />}
/>
</Tooltip>
</div>
</div>

View File

@ -5,6 +5,12 @@
.react-grid-layout {
border: none !important;
margin-top: 0;
.widget-graph-container {
&.graph {
height: 100%;
}
}
}
}
@ -23,7 +29,7 @@
.ant-modal-header {
background-color: var(--bg-ink-400);
}
}
}
}
.lightMode {