Fix install view stepper layout shift (#2106)

This commit is contained in:
Chenlei Hu
2024-12-30 19:19:40 -05:00
committed by GitHub
parent 1b10e16b2d
commit 98b96d2b1a

View File

@@ -1,6 +1,13 @@
<template>
<BaseViewTemplate dark>
<Stepper class="stepper" value="0" @update:value="setHighestStep">
<!-- h-full to make sure the stepper does not layout shift between steps
as for each step the stepper height is different. Inherit the center element
placement from BaseViewTemplate would cause layout shift. -->
<Stepper
class="h-full p-8 2xl:p-16"
value="0"
@update:value="setHighestStep"
>
<StepList class="select-none">
<Step value="0">
{{ $t('install.gpu') }}