Skip to content

Commit cd41c6b

Browse files
committed
fix: Simplify selected option display to avoid sizing issues with NcSelect
Signed-off-by: Julius Härtl <[email protected]>
1 parent f5eb414 commit cd41c6b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/shared/components/ncTable/partials/rowTypePartials/TextLinkForm.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<LinkWidget :thumbnail-url="props.thumbnailUrl" :icon-url="props.icon" :title="props.title" :subline="props.subline" :icon-size="40" />
2424
</template>
2525
<template #selected-option="props">
26-
<LinkWidget :thumbnail-url="props.thumbnailUrl" :icon-url="props.icon" :title="props.title" :subline="props.subline" :icon-size="40" />
26+
<LinkWidget :thumbnail-url="props.thumbnailUrl" :icon-url="props.icon" :title="props.title" :icon-size="24" />
2727
</template>
2828
</NcSelect>
2929
<NcButton type="tertiary" :disabled="!localValue" :title="t('tables', 'Copy link')" @click="copyLink">
@@ -262,10 +262,19 @@ export default {
262262
},
263263
}
264264
</script>
265-
<style scoped>
265+
<style lang="scss" scoped>
266266
.link-input {
267267
display: flex;
268268
align-items: center;
269-
margin-bottom: var(--default-grid-baseline)
269+
margin-bottom: var(--default-grid-baseline);
270+
271+
:deep(.v-select:not(.vs--open) .vs__search) {
272+
position: absolute;
273+
}
274+
275+
:deep(.vs__selected) {
276+
flex-grow: 1;
277+
height: auto !important;
278+
}
270279
}
271280
</style>

0 commit comments

Comments
 (0)