Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Truncate text in content switcher button, allow width to change (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkrida authored Mar 1, 2022
1 parent e0ac241 commit c8844bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/VContentSwitcher/VSearchTypeButton.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>
<VButton
class="flex flex-row font-semibold py-2 text-sr md:text-base"
:class="sizeClasses"
:class="[
sizeClasses,
showLabel ? 'max-w-[10rem] sm:max-w-[20rem] md:max-w-[16rem]' : '',
]"
:variant="buttonVariant"
size="disabled"
:aria-label="buttonLabel"
Expand All @@ -12,7 +15,7 @@
<span
v-show="showLabel"
class="hidden xs:block"
:class="{ 'ms-2 md:w-20 text-left': showLabel }"
:class="{ 'ms-2 truncate text-left': showLabel }"
>{{ buttonLabel }}</span
>
<VIcon
Expand Down

0 comments on commit c8844bd

Please sign in to comment.