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

Commit

Permalink
Remove SearchTypes width
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Jan 16, 2023
1 parent 67be993 commit 91db330
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/components/VContentSwitcher/VSearchTypePopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
</template>
<VSearchTypes
id="content-switcher-popover"
class="pt-2"
size="small"
:use-links="placement === 'header'"
@select="handleSelect"
Expand Down
8 changes: 2 additions & 6 deletions src/components/VContentSwitcher/VSearchTypes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:size="size"
:bordered="bordered"
type="radiogroup"
:class="width"
:class="{ 'w-66 pt-2': size === 'small' }"
>
<div
v-for="(category, index) in contentTypeGroups"
Expand All @@ -14,8 +14,7 @@
'mt-2': index > 0,
'border-t border-dark-charcoal-20 bg-dark-charcoal-06':
index > 0 && !bordered,
'gap-1': size === 'small',
[width]: !!width,
'w-66 gap-1': size === 'small',
}"
>
<h4
Expand Down Expand Up @@ -83,9 +82,6 @@ export default defineComponent({
type: Boolean,
default: true,
},
width: {
type: String,
},
},
emits: {
select: defineEvent<[SearchType]>(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<VSearchTypesOld
id="content-switcher-popover"
size="small"
width="w-66"
:active-item="activeItem"
:use-links="placement === 'header'"
@select="selectItem"
Expand Down
7 changes: 2 additions & 5 deletions src/components/VContentSwitcherOld/VSearchTypesOld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:size="size"
:bordered="bordered"
type="radiogroup"
:class="width"
:class="{ 'w-66 pt-2': size === 'small' }"
>
<div
v-for="(category, index) in contentTypeGroups"
Expand All @@ -13,7 +13,7 @@
'mt-2': index > 0,
'border-t border-dark-charcoal-20 bg-dark-charcoal-06':
index > 0 && !bordered,
[width]: size === 'small',
'w-66': size === 'small',
}"
>
<h4
Expand Down Expand Up @@ -66,9 +66,6 @@ export default defineComponent({
type: Boolean,
default: true,
},
width: {
type: Number,
},
},
emits: {
select: defineEvent<[SearchType]>(),
Expand Down
2 changes: 0 additions & 2 deletions src/components/VHomepageContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
>
<VSearchTypes
size="small"
class="pt-2"
width="w-66"
:use-links="false"
@select="handleSelect"
/>
Expand Down

0 comments on commit 91db330

Please sign in to comment.