Added margin to popup buttons

This commit is contained in:
ManeraKai 2024-09-19 22:59:14 +03:00
parent 7c527306af
commit 67c564fb5f
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 18 additions and 9 deletions

View File

@ -1,4 +1,4 @@
<span> <span {...$$restProps}>
<slot></slot> <slot></slot>
</span> </span>

View File

@ -106,7 +106,7 @@
}) })
}} }}
> >
<Label>{browser.i18n.getMessage("redirect") || "Redirect"}</Label> <Label class="margin">{browser.i18n.getMessage("redirect") || "Redirect"}</Label>
<RedirectIcon /> <RedirectIcon />
</Row> </Row>
{/if} {/if}
@ -121,12 +121,12 @@
window.close() window.close()
})} })}
> >
<Label>{browser.i18n.getMessage("switchInstance") || "Switch Instance"}</Label> <Label class="margin">{browser.i18n.getMessage("switchInstance") || "Switch Instance"}</Label>
<SwitchInstanceIcon /> <SwitchInstanceIcon />
</Row> </Row>
{/if} {/if}
<Row class="interactive" on:click={removeInstance}> <Row class="interactive" on:click={removeInstance}>
<Label> <Label class="margin">
{browser.i18n.getMessage("remove") || "Remove"} {browser.i18n.getMessage("remove") || "Remove"}
+ +
{browser.i18n.getMessage("switchInstance") || "Switch Instance"} {browser.i18n.getMessage("switchInstance") || "Switch Instance"}
@ -135,7 +135,7 @@
</Row> </Row>
{:else} {:else}
<Row class={"interactive " + (autoPicking ? "disabled" : "")} on:click={removeAndAutoPickInstance}> <Row class={"interactive " + (autoPicking ? "disabled" : "")} on:click={removeAndAutoPickInstance}>
<Label> <Label class="margin">
{browser.i18n.getMessage("remove") || "Remove"} {browser.i18n.getMessage("remove") || "Remove"}
+ +
{browser.i18n.getMessage("autoPickInstance") || "Auto Pick Instance"} {browser.i18n.getMessage("autoPickInstance") || "Auto Pick Instance"}
@ -143,7 +143,7 @@
<AutoPickIcon /> <AutoPickIcon />
</Row> </Row>
<Row class={"interactive " + (autoPicking ? "disabled" : "")} on:click={addAutoPickInstance}> <Row class={"interactive " + (autoPicking ? "disabled" : "")} on:click={addAutoPickInstance}>
<Label> <Label class="margin">
{browser.i18n.getMessage("autoPickInstance") || "Auto Pick Instance"} {browser.i18n.getMessage("autoPickInstance") || "Auto Pick Instance"}
</Label> </Label>
<AutoPickIcon /> <AutoPickIcon />
@ -153,7 +153,7 @@
{#if redirectToOriginal} {#if redirectToOriginal}
<Row class="interactive" on:click={() => servicesHelper.copyRaw(url)}> <Row class="interactive" on:click={() => servicesHelper.copyRaw(url)}>
<Label>{browser.i18n.getMessage("copyOriginal") || "Copy Original"}</Label> <Label class="margin">{browser.i18n.getMessage("copyOriginal") || "Copy Original"}</Label>
<CopyIcon /> <CopyIcon />
</Row> </Row>
<Row <Row
@ -166,7 +166,7 @@
}) })
}} }}
> >
<Label>{browser.i18n.getMessage("redirectToOriginal" || "Redirect to Original")}</Label> <Label class="margin">{browser.i18n.getMessage("redirectToOriginal" || "Redirect to Original")}</Label>
<RedirectToOriginalIcon /> <RedirectToOriginalIcon />
</Row> </Row>
{/if} {/if}
@ -195,7 +195,7 @@
window.close() window.close()
})} })}
> >
<Label>{browser.i18n.getMessage("settings")}</Label> <Label class="margin">{browser.i18n.getMessage("settings")}</Label>
<SettingsIcon /> <SettingsIcon />
</Row> </Row>
</div> </div>
@ -238,4 +238,13 @@
margin-right: 0; margin-right: 0;
margin-left: 5px; margin-left: 5px;
} }
:global(.margin) {
margin-right: 5px;
margin-left: 0;
}
:global(.margin_rtl) {
margin-right: 0;
margin-left: 5px;
}
</style> </style>