Fix color picker not displayed correctly (#2136)

Fixes #2134.
Regression from #1989.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
pull/2150/head
Florian Hotze 2023-10-29 14:50:57 +01:00 committed by GitHub
parent c2d071a9cf
commit c9de04eaff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
<template>
<div :style="config.style">
<div :style="{
width: '100%',
...config.style
}">
<div v-if="!config.openIn" ref="container" style="width: 100%" />
<div v-else ref="swatch" :class="config.swatchClasses || ['elevation-4', 'elevation-hover-8', 'elevation-pressed-1', 'elevation-transition']" :style="{
width: (config.swatchSize) ? config.swatchSize + 'px' : '32px',