mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: popover padding
This commit is contained in:
1 parent
648f640374
commit
f41ff6cea1
9 files changed
+28
-28
No files matched your search
+2
-2
@@ -30,7 +30,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<Popover placement="bottom-end" let:toggle>
|
||||
<Popover padding="none" placement="bottom-end" let:toggle>
|
||||
<Button
|
||||
text={!inCard}
|
||||
secondary={inCard}
|
||||
@@ -43,7 +43,7 @@
|
||||
<Icon size="s" icon={IconDotsHorizontal} />
|
||||
</Button>
|
||||
<svelte:fragment slot="tooltip" let:toggle>
|
||||
<ActionMenu.Root noPadding>
|
||||
<ActionMenu.Root>
|
||||
{#if !inCard}
|
||||
<ActionMenu.Item.Button
|
||||
leadingIcon={IconRefresh}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</Layout.Stack>
|
||||
</Link>
|
||||
{#if domains.rules.length > 1}
|
||||
<Popover let:toggle>
|
||||
<Popover padding="none" let:toggle>
|
||||
<Tag size="s" on:click={toggle}>
|
||||
+{domains.rules.length - 1}
|
||||
</Tag>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</script>
|
||||
|
||||
{#if deployment.type === 'vcs'}
|
||||
<Popover let:toggle>
|
||||
<Popover padding="none" let:toggle>
|
||||
<Layout.Stack>
|
||||
<Link
|
||||
on:click={(e) => {
|
||||
@@ -28,7 +28,7 @@
|
||||
</Link>
|
||||
</Layout.Stack>
|
||||
<svelte:fragment slot="tooltip">
|
||||
<ActionMenu.Root noPadding>
|
||||
<ActionMenu.Root>
|
||||
<ActionMenu.Item.Anchor
|
||||
href={deployment.providerRepositoryUrl}
|
||||
external
|
||||
|
||||
@@ -189,7 +189,10 @@
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
<div style="margin-inline-start: auto">
|
||||
<Popover placement="bottom-end" let:toggle>
|
||||
<Popover
|
||||
padding="none"
|
||||
placement="bottom-end"
|
||||
let:toggle>
|
||||
<PinkButton.Button
|
||||
icon
|
||||
variant="text"
|
||||
@@ -205,7 +208,7 @@
|
||||
</PinkButton.Button>
|
||||
|
||||
<svelte:fragment slot="tooltip" let:toggle>
|
||||
<ActionMenu.Root noPadding>
|
||||
<ActionMenu.Root>
|
||||
{#if !variable?.secret}
|
||||
<ActionMenu.Item.Button
|
||||
leadingIcon={IconPencil}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import { debounce } from '$lib/helpers/debounce';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { consoleVariables } from '$routes/(console)/store';
|
||||
import { Type } from '@appwrite.io/console';
|
||||
import { ConsoleResourceType } from '@appwrite.io/console';
|
||||
import { Fieldset, Layout, Divider, Status, Typography } from '@appwrite.io/pink-svelte';
|
||||
|
||||
export let domain: string;
|
||||
@@ -16,7 +16,7 @@
|
||||
try {
|
||||
await sdk.forConsole.console.getResource(
|
||||
`${value}.${$consoleVariables._APP_DOMAIN_SITES}`,
|
||||
'rules' as unknown as Type //TODO: fix after Matej fixes backend
|
||||
ConsoleResourceType.Rules
|
||||
);
|
||||
|
||||
domainIsValid = true;
|
||||
|
||||
@@ -80,17 +80,14 @@
|
||||
|
||||
<Divider />
|
||||
|
||||
<Layout.Stack direction="row" gap="xxl" wrap="wrap">
|
||||
<div style:flex="1">
|
||||
<DomainsOverview proxyRuleList={data.proxyRuleList} />
|
||||
</div>
|
||||
<div style:flex="2">
|
||||
<DeploymentsOverview
|
||||
site={data.site}
|
||||
activeDeployment={data.deployment}
|
||||
deploymentList={data.deploymentList} />
|
||||
</div>
|
||||
</Layout.Stack>
|
||||
<!-- TODO: mobile view table doesn't shrink -->
|
||||
<Layout.GridFraction gap="xxl" start={1} end={2} breakpoint="m">
|
||||
<DomainsOverview proxyRuleList={data.proxyRuleList} />
|
||||
<DeploymentsOverview
|
||||
site={data.site}
|
||||
activeDeployment={data.deployment}
|
||||
deploymentList={data.deploymentList} />
|
||||
</Layout.GridFraction>
|
||||
</Layout.Stack>
|
||||
</Container>
|
||||
|
||||
|
||||
@@ -115,13 +115,13 @@
|
||||
{#if data.deploymentList.total}
|
||||
<ViewSelector view={View.Table} {columns} hideView allowNoColumns />
|
||||
{/if}
|
||||
<Popover let:toggle>
|
||||
<Popover padding="none" let:toggle>
|
||||
<Button size="s" on:click={toggle}>
|
||||
<Icon size="s" icon={IconPlus} />
|
||||
Create deployment
|
||||
</Button>
|
||||
<svelte:fragment slot="tooltip" let:toggle>
|
||||
<ActionMenu.Root noPadding>
|
||||
<ActionMenu.Root>
|
||||
<ActionMenu.Item.Button
|
||||
badge="Recommended"
|
||||
on:click={(e) => {
|
||||
|
||||
+4
-4
@@ -183,7 +183,7 @@
|
||||
</script>
|
||||
|
||||
{#each [typeFilter] as filter}
|
||||
<Popover let:toggle let:showing>
|
||||
<Popover padding="none" let:toggle let:showing>
|
||||
<!--TODO: add tracking back event="apply_quick_filter" -->
|
||||
<Tag on:click={toggle}>
|
||||
{#key filter.tag}
|
||||
@@ -194,7 +194,7 @@
|
||||
<Icon icon={showing ? IconChevronUp : IconChevronDown} slot="end" size="s" />
|
||||
</Tag>
|
||||
<svelte:fragment slot="tooltip" let:toggle>
|
||||
<ActionMenu.Root noPadding>
|
||||
<ActionMenu.Root>
|
||||
{#each filter.options as option (option.value + option.checked)}
|
||||
<SelectSearchCheckbox
|
||||
padding={8}
|
||||
@@ -231,7 +231,7 @@
|
||||
</Popover>
|
||||
{/each}
|
||||
{#each [sizeFilter] as filter}
|
||||
<Popover let:toggle let:showing>
|
||||
<Popover padding="none" let:toggle let:showing>
|
||||
<!--TODO: add tracking back event="apply_quick_filter" -->
|
||||
|
||||
<Tag on:click={toggle}>
|
||||
@@ -244,7 +244,7 @@
|
||||
<Icon icon={showing ? IconChevronUp : IconChevronDown} slot="end" size="s" />
|
||||
</Tag>
|
||||
<svelte:fragment slot="tooltip" let:toggle>
|
||||
<ActionMenu.Root noPadding>
|
||||
<ActionMenu.Root>
|
||||
{#each filter.options as option (option.value + option.checked)}
|
||||
<ActionMenu.Item.Button
|
||||
on:click={(e) => {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
export let selectedSite: Models.Site = null;
|
||||
</script>
|
||||
|
||||
<Popover placement="bottom-end" let:toggle>
|
||||
<Popover padding="none" placement="bottom-end" let:toggle>
|
||||
<Button
|
||||
text
|
||||
icon
|
||||
@@ -28,7 +28,7 @@
|
||||
}}>
|
||||
<Icon size="s" icon={IconDotsHorizontal} /></Button>
|
||||
<svelte:fragment slot="tooltip" let:toggle>
|
||||
<ActionMenu.Root noPadding>
|
||||
<ActionMenu.Root>
|
||||
<ActionMenu.Item.Button
|
||||
leadingIcon={IconUserAdd}
|
||||
on:click={(e) => {
|
||||
|
||||
Reference in new issue
Block a user