mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Fix label cut off (#3820)
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="$style.container">
|
<div :class="$style.container">
|
||||||
<div :class="{
|
<div v-if="label || $slots.options" :class="{
|
||||||
[this.$style.label]: !!this.label,
|
[this.$style.heading]: !!this.label,
|
||||||
[this.$style.underline]: this.underline,
|
[this.$style.underline]: this.underline,
|
||||||
[this.$style[this.size]]: true,
|
[this.$style[this.size]]: true,
|
||||||
|
[$style.overflow]: !!$slots.options,
|
||||||
}">
|
}">
|
||||||
<div :class="$style.title" v-if="label">
|
<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 }}
|
{{ label }}
|
||||||
<n8n-text color="primary" :bold="bold" :size="size" v-if="required">*</n8n-text>
|
<n8n-text color="primary" :bold="bold" :size="size" v-if="required">*</n8n-text>
|
||||||
</n8n-text>
|
</n8n-text>
|
||||||
@@ -153,8 +154,11 @@ export default {
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.heading {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflow {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: clip;
|
overflow-y: clip;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user