chore: undo more formatting

This commit is contained in:
Jimmeh 2024-03-06 19:14:42 +00:00
parent 4471e316ff
commit f62f628805
1 changed files with 13 additions and 11 deletions

View File

@ -1,10 +1,11 @@
<template> <template>
<div :class="`widget-base ${loading ? 'is-loading' : ''}`"> <div :class="`widget-base ${ loading ? 'is-loading' : '' }`">
<!-- Update and Full-Page Action Buttons --> <!-- Update and Full-Page Action Buttons -->
<Button :click="update" class="action-btn update-btn" v-if="!hideControls && !loading"> <Button :click="update" class="action-btn update-btn" v-if="!hideControls && !loading">
<UpdateIcon /> <UpdateIcon />
</Button> </Button>
<Button :click="fullScreenWidget" class="action-btn open-btn" v-if="!hideControls && !error && !loading"> <Button :click="fullScreenWidget"
class="action-btn open-btn" v-if="!hideControls && !error && !loading">
<OpenIcon /> <OpenIcon />
</Button> </Button>
<!-- Loading Spinner --> <!-- Loading Spinner -->
@ -18,13 +19,16 @@
<p class="retry-link" @click="update">Retry</p> <p class="retry-link" @click="update">Retry</p>
</div> </div>
<!-- Widget Label --> <!-- Widget Label -->
<div class="widget-label" v-if="widgetOptions.label"> <div class="widget-label" v-if="widgetOptions.label">{{ widgetOptions.label }}</div>
{{ widgetOptions.label }}
</div>
<!-- Widget --> <!-- Widget -->
<div :class="`widget-wrap ${error ? 'has-error' : ''}`"> <div :class="`widget-wrap ${ error ? 'has-error' : '' }`">
<component v-bind:is="component" :options="widgetOptions" @loading="setLoaderState" @error="handleError" <component
:ref="widgetRef" /> v-bind:is="component"
:options="widgetOptions"
@loading="setLoaderState"
@error="handleError"
:ref="widgetRef"
/>
</div> </div>
</div> </div>
</template> </template>
@ -250,9 +254,7 @@ export default {
border-radius: var(--curve-factor); border-radius: var(--curve-factor);
background: #ffff0040; background: #ffff0040;
&:hover { &:hover { background: none; }
background: none;
}
} }
} }