Skip to content

Commit b6bf2ae

Browse files
committed
Stop logic operator badges stretching to the badge minimum height
1 parent 9cd76c8 commit b6bf2ae

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎resources/js/components/forms/connections/ConnectionSummary.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const previewParts = computed<SummaryPart[]>(() =>
112112
<template v-for="(part, index) in previewParts" :key="index">
113113
<Badge
114114
v-if="part.type === PartType.Operator || part.type === PartType.Join"
115-
class="inline-block px-1 py-1.5 font-medium st-text-trim-ex-alphabetic lowercase bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
115+
class="inline-block min-h-0 px-1 py-1.5 font-medium st-text-trim-ex-alphabetic lowercase bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
116116
>
117117
{{ part.text }}
118118
</Badge>

‎resources/js/components/forms/logic/FieldLogicRule.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const onConditionsUpdated = (conditions) => emit('update:conditions', conditions
125125
<span v-if="part.type === 'field'" class="text-gray-700 dark:text-gray-300">{{ part.text }}</span>
126126
<Badge
127127
v-else-if="part.type === 'operator'"
128-
class="inline-block px-1 py-1.5 font-medium st-text-trim-ex-alphabetic lowercase bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
128+
class="inline-block min-h-0 px-1 py-1.5 font-medium st-text-trim-ex-alphabetic lowercase bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
129129
>
130130
{{ part.text }}
131131
</Badge>

‎resources/js/components/forms/logic/PageLogicRule.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ const toggleCollapsedState = () => props.collapsed ? emit('expanded') : emit('co
135135
<template v-for="(part, index) in previewParts" :key="index">
136136
<Badge
137137
v-if="part.type === 'operator'"
138-
class="inline-block px-1 py-1.5 font-medium st-text-trim-ex-alphabetic lowercase bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
138+
class="inline-block min-h-0 px-1 py-1.5 font-medium st-text-trim-ex-alphabetic lowercase bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
139139
>
140140
{{ part.text }}
141141
</Badge>
142142
<span v-else-if="part.type === 'value'" class="font-mono text-gray-900 dark:text-gray-100">{{ part.text }}</span>
143143
<Badge
144144
v-else-if="part.type === 'join'"
145-
class="inline-block px-1 py-1.5 font-medium st-text-trim-ex-alphabetic lowercase bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
145+
class="inline-block min-h-0 px-1 py-1.5 font-medium st-text-trim-ex-alphabetic lowercase bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
146146
>
147147
{{ part.text }}
148148
</Badge>

0 commit comments

Comments
 (0)