Skip to content

Commit 12234f5

Browse files
feat(stopped-page): improve button styling and structure (#985)
* feat(stopped-page): improve button styling and structure - Replace button elements with CsgButton - Update button classes for consistency - Adjust padding and margin for layout * fix: remove unused import in StoppedPage.vue - Remove CsgButton import - Clean up codebase
1 parent b19f319 commit 12234f5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

frontend/src/components/application_spaces/StoppedPage.vue

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="h-[50vh] py-[32px] flex flex-col items-center justify-center sm:px-[20px]">
2+
<div class="h-[50vh] py-8 flex flex-col items-center justify-center sm:px-5">
33
<p v-if="appStatus === 'Stopped'"
44
class="text-gray-700 text-md"
55
>
@@ -12,19 +12,18 @@
1212
{{ $t('application_spaces.sleepingDesc') }}
1313
</p>
1414

15-
<button v-if="isStopped && canWrite"
16-
class="border border-brand-600 bg-brand-600 rounded-md shadow-xs px-[16px] py-[10px] text-white font-[500] text-md leading-[24px] mt-[24px]"
15+
<CsgButton v-if="isStopped && canWrite"
16+
class="btn btn-primary btn-md mt-6"
1717
@click="startSpace"
18-
>
19-
{{ $t('application_spaces.restart') }}
20-
</button>
18+
:name="$t('application_spaces.restart')"
19+
/>
2120

22-
<button v-if="isSleeping"
23-
class="border border-brand-600 bg-brand-600 rounded-md shadow-xs px-[16px] py-[10px] text-white font-[500] text-md leading-[24px] mt-[24px]"
21+
<CsgButton v-if="isSleeping"
22+
class="btn btn-primary btn-md mt-6"
2423
@click="wakeupSpace"
25-
>
26-
{{ $t('application_spaces.wakeup') }}
27-
</button>
24+
:name="$t('application_spaces.wakeup')"
25+
/>
26+
2827
</div>
2928
</template>
3029

0 commit comments

Comments
 (0)