diff --git a/src/frontend/src/lib/components/core/Actions.svelte b/src/frontend/src/lib/components/core/Actions.svelte new file mode 100644 index 000000000..dec45e3af --- /dev/null +++ b/src/frontend/src/lib/components/core/Actions.svelte @@ -0,0 +1,28 @@ + + + + + +
+ +
+
+ + diff --git a/src/frontend/src/lib/components/core/User.svelte b/src/frontend/src/lib/components/core/User.svelte index f69ac7159..47919805b 100644 --- a/src/frontend/src/lib/components/core/User.svelte +++ b/src/frontend/src/lib/components/core/User.svelte @@ -91,7 +91,7 @@ diff --git a/src/frontend/src/lib/components/mission-control/MissionControl.svelte b/src/frontend/src/lib/components/mission-control/MissionControl.svelte index a61f94b23..c0b6d1edc 100644 --- a/src/frontend/src/lib/components/mission-control/MissionControl.svelte +++ b/src/frontend/src/lib/components/mission-control/MissionControl.svelte @@ -3,7 +3,7 @@ import { missionControlStore } from '$lib/stores/mission-control.store'; import { nonNullish } from '@dfinity/utils'; import CanisterOverview from '$lib/components/canister/CanisterOverview.svelte'; - import MissionControlTopUp from '$lib/components/mission-control/MissionControlTopUp.svelte'; + import MissionControlActions from '$lib/components/mission-control/MissionControlActions.svelte'; import Value from '$lib/components/ui/Value.svelte'; import { i18n } from '$lib/stores/i18n.store'; import Identifier from '$lib/components/ui/Identifier.svelte'; @@ -12,10 +12,16 @@ {#if $authSignedInStore}
- - {$i18n.mission_control.id} - - +
+ + {$i18n.mission_control.id} + + +
{$i18n.core.version} @@ -25,7 +31,13 @@ {#if nonNullish($missionControlStore)} {/if} -
- + + {/if} + + diff --git a/src/frontend/src/lib/components/mission-control/MissionControlActions.svelte b/src/frontend/src/lib/components/mission-control/MissionControlActions.svelte new file mode 100644 index 000000000..df0ce1988 --- /dev/null +++ b/src/frontend/src/lib/components/mission-control/MissionControlActions.svelte @@ -0,0 +1,11 @@ + + + + + diff --git a/src/frontend/src/lib/components/mission-control/MissionControlTopUp.svelte b/src/frontend/src/lib/components/mission-control/MissionControlTopUp.svelte deleted file mode 100644 index f026c2c32..000000000 --- a/src/frontend/src/lib/components/mission-control/MissionControlTopUp.svelte +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/frontend/src/lib/components/orbiter/Orbiter.svelte b/src/frontend/src/lib/components/orbiter/Orbiter.svelte index 7cb321278..da470e934 100644 --- a/src/frontend/src/lib/components/orbiter/Orbiter.svelte +++ b/src/frontend/src/lib/components/orbiter/Orbiter.svelte @@ -5,16 +5,18 @@ import Identifier from '$lib/components/ui/Identifier.svelte'; import { versionStore } from '$lib/stores/version.store'; import CanisterOverview from '$lib/components/canister/CanisterOverview.svelte'; - import OrbiterTopUp from '$lib/components/orbiter/OrbiterTopUp.svelte'; + import OrbiterActions from '$lib/components/orbiter/OrbiterActions.svelte'; export let orbiter: Orbiter;
- - {$i18n.analytics.id} - - +
+ + {$i18n.analytics.id} + + +
{$i18n.core.version} @@ -22,6 +24,12 @@ + +
- + diff --git a/src/frontend/src/lib/components/orbiter/OrbiterActions.svelte b/src/frontend/src/lib/components/orbiter/OrbiterActions.svelte new file mode 100644 index 000000000..3d4ca7d16 --- /dev/null +++ b/src/frontend/src/lib/components/orbiter/OrbiterActions.svelte @@ -0,0 +1,11 @@ + + + + + diff --git a/src/frontend/src/lib/components/orbiter/OrbiterTopUp.svelte b/src/frontend/src/lib/components/orbiter/OrbiterTopUp.svelte deleted file mode 100644 index 19016b99c..000000000 --- a/src/frontend/src/lib/components/orbiter/OrbiterTopUp.svelte +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/frontend/src/lib/components/satellites/SatelliteActions.svelte b/src/frontend/src/lib/components/satellites/SatelliteActions.svelte index 227bfbad4..1b18e3bfe 100644 --- a/src/frontend/src/lib/components/satellites/SatelliteActions.svelte +++ b/src/frontend/src/lib/components/satellites/SatelliteActions.svelte @@ -3,19 +3,13 @@ import TopUp from '$lib/components/canister/TopUp.svelte'; import SatelliteStopStart from '$lib/components/satellites/SatelliteStopStart.svelte'; import SatelliteDelete from '$lib/components/satellites/SatelliteDelete.svelte'; - import IconMore from '$lib/components/icons/IconMore.svelte'; - import Popover from '$lib/components/ui/Popover.svelte'; import type { Canister } from '$lib/types/canister'; + import Actions from '$lib/components/core/Actions.svelte'; export let satellite: Satellite; let detail = { satellite }; - let button: HTMLButtonElement | undefined; - let visible: boolean | undefined; - - const close = () => (visible = false); - let canister: Canister | undefined = undefined; const onSyncCanister = (syncCanister: Canister) => { @@ -25,40 +19,24 @@ canister = syncCanister; }; + + let visible: boolean | undefined; + const close = () => (visible = false); onSyncCanister(canister)} /> - - - -
- - - - - -
-
- - + + diff --git a/src/frontend/src/lib/styles/mixins/_overlay.scss b/src/frontend/src/lib/styles/mixins/_overlay.scss index 780840e84..7f4fe1e42 100644 --- a/src/frontend/src/lib/styles/mixins/_overlay.scss +++ b/src/frontend/src/lib/styles/mixins/_overlay.scss @@ -85,3 +85,12 @@ @mixin title { margin: 0 0 var(--padding-3x); } + +@mixin popover-container { + .container { + display: flex; + flex-direction: column; + + padding: var(--padding) var(--padding-2x); + } +}