fix: small bugs

This commit is contained in:
Arman
2025-02-24 15:37:05 +01:00
parent 579ed70057
commit b6855dfdaf
3 changed files with 13 additions and 11 deletions
@@ -41,11 +41,11 @@
return deployment.screenshotDark
? getFilePreview(deployment.screenshotDark)
: `${base}/images/sites/screenshot-placeholder-dark.svg`;
} else {
return deployment.screenshotLight
? getFilePreview(deployment.screenshotLight)
: `${base}/images/sites/screenshot-placeholder-light.svg`;
}
return deployment.screenshotLight
? getFilePreview(deployment.screenshotLight)
: `${base}/images/sites/screenshot-placeholder-light.svg`;
}
function getFilePreview(fileId: string) {
@@ -99,12 +99,14 @@
</PinkButton.Button>
</Layout.Stack>
{/each}
<Button
text
compact
disabled={newVariables.some((pair) => !pair.key)}
on:click={() => (newVariables = [...newVariables, { key: '', value: '' }])}>
<Icon slot="start" icon={IconPlus} />Add variable</Button>
<div>
<Button
text
compact
disabled={newVariables.some((pair) => !pair.key)}
on:click={() => (newVariables = [...newVariables, { key: '', value: '' }])}>
<Icon slot="start" icon={IconPlus} />Add variable</Button>
</div>
</Layout.Stack>
<Selector.Checkbox
size="s"
@@ -70,7 +70,7 @@
direction="row"
gap="xl">
<Layout.Stack gap="xxs" inline>
<Link variant="quiet" href={`${$protocol}${rule.domain}`} size="m">
<Link variant="quiet" href={`${$protocol}${rule.domain}`} size="m" external>
<Layout.Stack gap="xs" inline direction="row" alignItems="center">
<Trim alternativeTrim>
{rule.domain}