Overhauled spell casting UX

This commit is contained in:
Stefan Zermatten
2022-02-27 22:14:32 +02:00
parent 49fa9cc470
commit e6c7d79d7d
17 changed files with 557 additions and 244 deletions

View File

@@ -7,10 +7,15 @@
>
<template #activator="{ on }">
<v-btn
icon
:outlined="!!label"
:icon="!label"
:min-width="label && 108"
v-on="on"
>
<v-icon>mdi-format-paint</v-icon>
{{ label }}
<v-icon :right="!!label">
mdi-format-paint
</v-icon>
</v-btn>
</template>
<v-card class="overflow-hidden">
@@ -122,6 +127,10 @@
type: String,
default: undefined,
},
label: {
type: String,
default: undefined,
}
},
data(){ return {
colors: [

View File

@@ -8,21 +8,22 @@
>
<template #activator="{ on }">
<div class="layout align-center">
<v-label>{{ label }}</v-label>
<v-btn
:loading="loading"
large
icon
outlined
:min-width="108"
v-on="on"
>
{{ label }}
<svg-icon
v-if="safeValue && safeValue.shape"
large
right
class="ml-2"
:shape="safeValue.shape"
/>
<v-icon
v-else
large
right
>
mdi-select-search
</v-icon>