refactor(proxies): make the content header and settings button sticky
This commit is contained in:
parent
320cc4bff7
commit
629062d945
3 changed files with 18 additions and 9 deletions
|
@ -1,11 +1,17 @@
|
||||||
.topBar {
|
.topBar {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background: var(--color-background);
|
background: var(--color-background);
|
||||||
display: flex;
|
background: linear-gradient(var(--color-background) 70%, transparent);
|
||||||
justify-content: flex-end;
|
}
|
||||||
padding: 5px 5px 2px 0;
|
|
||||||
|
.settingBtnContainer {
|
||||||
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.group {
|
.group {
|
||||||
|
|
|
@ -84,18 +84,20 @@ function Proxies({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={s0.topBar}>
|
|
||||||
<Button kind="minimal" onClick={() => setIsSettingsModalOpen(true)}>
|
|
||||||
<Equalizer size={16} />
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
<BaseModal
|
<BaseModal
|
||||||
isOpen={isSettingsModalOpen}
|
isOpen={isSettingsModalOpen}
|
||||||
onRequestClose={closeSettingsModal}
|
onRequestClose={closeSettingsModal}
|
||||||
>
|
>
|
||||||
<Settings />
|
<Settings />
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
|
<div className={s0.topBar}>
|
||||||
<ContentHeader title="Proxies" />
|
<ContentHeader title="Proxies" />
|
||||||
|
<div className={s0.settingBtnContainer}>
|
||||||
|
<Button kind="minimal" onClick={() => setIsSettingsModalOpen(true)}>
|
||||||
|
<Equalizer size={16} />
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{groupNames.map((groupName: string) => {
|
{groupNames.map((groupName: string) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
margin-left: -3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.listSummaryView {
|
.listSummaryView {
|
||||||
|
|
Loading…
Reference in a new issue