Skip to content

Commit

Permalink
fix: Simplify selected option display to avoid sizing issues with NcS…
Browse files Browse the repository at this point in the history
…elect

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 30, 2024
1 parent f5eb414 commit cd41c6b
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<LinkWidget :thumbnail-url="props.thumbnailUrl" :icon-url="props.icon" :title="props.title" :subline="props.subline" :icon-size="40" />
</template>
<template #selected-option="props">
<LinkWidget :thumbnail-url="props.thumbnailUrl" :icon-url="props.icon" :title="props.title" :subline="props.subline" :icon-size="40" />
<LinkWidget :thumbnail-url="props.thumbnailUrl" :icon-url="props.icon" :title="props.title" :icon-size="24" />
</template>
</NcSelect>
<NcButton type="tertiary" :disabled="!localValue" :title="t('tables', 'Copy link')" @click="copyLink">
Expand Down Expand Up @@ -262,10 +262,19 @@ export default {
},
}
</script>
<style scoped>
<style lang="scss" scoped>
.link-input {
display: flex;
align-items: center;
margin-bottom: var(--default-grid-baseline)
margin-bottom: var(--default-grid-baseline);
:deep(.v-select:not(.vs--open) .vs__search) {
position: absolute;
}
:deep(.vs__selected) {
flex-grow: 1;
height: auto !important;
}
}
</style>

0 comments on commit cd41c6b

Please sign in to comment.