feat(ui): Improve ConnectionStatus responsive design
- Add responsive classes to ConnectionStatus badge - Hide status text on mobile screens - Conditionally display error message on larger screens - Enhance badge styling with transparent background on mobile
This commit is contained in:
parent
18ece1e3e7
commit
68d6001880
1 changed files with 6 additions and 3 deletions
|
|
@ -31,7 +31,10 @@ function getStatusColorSolid() {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<Badge :variant="getStatusVariant()" class="flex items-center gap-1">
|
<Badge
|
||||||
|
:variant="getStatusVariant()"
|
||||||
|
class="flex items-center gap-1 border-0 bg-transparent sm:border sm:bg-[inherit]"
|
||||||
|
>
|
||||||
<span class="relative flex h-2 w-2">
|
<span class="relative flex h-2 w-2">
|
||||||
<span
|
<span
|
||||||
class="absolute inline-flex h-full w-full rounded-full opacity-75"
|
class="absolute inline-flex h-full w-full rounded-full opacity-75"
|
||||||
|
|
@ -46,9 +49,9 @@ function getStatusColorSolid() {
|
||||||
:class="getStatusColorSolid()"
|
:class="getStatusColorSolid()"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<span class="text-[10px]">{{ getStatusText() }}</span>
|
<span class="hidden text-[10px] sm:inline">{{ getStatusText() }}</span>
|
||||||
</Badge>
|
</Badge>
|
||||||
<p v-if="error" class="text-xs text-destructive">
|
<p v-if="error" class="hidden text-xs text-destructive sm:block">
|
||||||
{{ error.message }}
|
{{ error.message }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue