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

View File

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

View File

@ -5,6 +5,12 @@
.react-grid-layout { .react-grid-layout {
border: none !important; border: none !important;
margin-top: 0; margin-top: 0;
.widget-graph-container {
&.graph {
height: 100%;
}
}
} }
} }