ui/install: fix alignment of some steps

This commit is contained in:
Johannes Kirschbauer
2025-08-12 16:34:33 +02:00
parent f3617b0407
commit 69d8b029d6
2 changed files with 9 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ import { StepLayout } from "../../Steps";
const ChoiceLocalOrRemote = () => { const ChoiceLocalOrRemote = () => {
const stepSignal = useStepper<InstallSteps>(); const stepSignal = useStepper<InstallSteps>();
return ( return (
<div class="flex flex-col gap-3"> <div class="flex flex-col gap-3 size-full">
<div class="flex flex-col gap-6 rounded-md px-4 py-6 text-fg-def-1 bg-def-2"> <div class="flex flex-col gap-6 rounded-md px-4 py-6 text-fg-def-1 bg-def-2">
<div class="flex justify-between gap-2"> <div class="flex justify-between gap-2">
<div class="flex flex-col justify-center gap-1 px-1"> <div class="flex flex-col justify-center gap-1 px-1">

View File

@@ -16,10 +16,7 @@ import { Alert } from "@/src/components/Alert/Alert";
import { LoadingBar } from "@/src/components/LoadingBar/LoadingBar"; import { LoadingBar } from "@/src/components/LoadingBar/LoadingBar";
import { Button } from "@/src/components/Button/Button"; import { Button } from "@/src/components/Button/Button";
import Icon from "@/src/components/Icon/Icon"; import Icon from "@/src/components/Icon/Icon";
import { import { useSystemStorageOptions } from "@/src/hooks/queries";
useMachineFlashOptions,
useSystemStorageOptions,
} from "@/src/hooks/queries";
import { useApiClient } from "@/src/hooks/ApiClient"; import { useApiClient } from "@/src/hooks/ApiClient";
import { onMount } from "solid-js"; import { onMount } from "solid-js";
@@ -144,8 +141,6 @@ const ConfigureImage = () => {
throw new Error("No data returned from api call"); throw new Error("No data returned from api call");
}; };
const optionsQuery = useMachineFlashOptions();
let content: Node; let content: Node;
return ( return (
@@ -309,15 +304,17 @@ const FlashProgress = () => {
}); });
const handleCancel = async () => { const handleCancel = async () => {
if (store.flash) {
const progress = store.flash.progress; const progress = store.flash.progress;
if (progress) { if (progress) {
await progress.cancel(); await progress.cancel();
} }
}
stepSignal.previous(); stepSignal.previous();
}; };
return ( return (
<div class="flex size-full h-60 flex-col items-center justify-end bg-inv-4"> <div class="flex size-full flex-col items-center justify-center bg-inv-4">
<div class="mb-6 flex w-full max-w-md flex-col items-center gap-3 fg-inv-1"> <div class="mb-6 flex w-full max-w-md flex-col items-center gap-3 fg-inv-1">
<Typography <Typography
hierarchy="title" hierarchy="title"
@@ -344,7 +341,7 @@ const FlashDone = () => {
const stepSignal = useStepper<InstallSteps>(); const stepSignal = useStepper<InstallSteps>();
return ( return (
<div class="flex size-full flex-col items-center justify-between bg-inv-4"> <div class="flex size-full flex-col items-center justify-between bg-inv-4">
<div class="flex w-full max-w-md flex-col items-center gap-3 py-6 fg-inv-1"> <div class="flex size-full max-w-md flex-col items-center justify-center gap-3 py-6 fg-inv-1">
<div class="rounded-full bg-semantic-success-4"> <div class="rounded-full bg-semantic-success-4">
<Icon icon="Checkmark" class="size-9" /> <Icon icon="Checkmark" class="size-9" />
</div> </div>