Skip to content

Commit

Permalink
fix(editor): Fix label cut off (#3820)
Browse files Browse the repository at this point in the history
  • Loading branch information
mutdmour authored and brianinoa committed Aug 5, 2022
1 parent 1bbb48f commit deffc28
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<template>
<div :class="$style.container">
<div :class="{
[this.$style.label]: !!this.label,
<div v-if="label || $slots.options" :class="{
[this.$style.heading]: !!this.label,
[this.$style.underline]: this.underline,
[this.$style[this.size]]: true,
[$style.overflow]: !!$slots.options,
}">
<div :class="$style.title" v-if="label">
<n8n-text :bold="bold" :size="size" :compact="!underline">
<n8n-text :bold="bold" :size="size" :compact="!underline && !$slots.options">
{{ label }}
<n8n-text color="primary" :bold="bold" :size="size" v-if="required">*</n8n-text>
</n8n-text>
Expand Down Expand Up @@ -153,8 +154,11 @@ export default {
opacity: 1;
}
.label {
.heading {
display: flex;
}
.overflow {
overflow-x: hidden;
overflow-y: clip;
}
Expand Down

0 comments on commit deffc28

Please sign in to comment.