Skip to content

Commit

Permalink
Merge pull request #11274 from roiLeo/chore/bulma/square
Browse files Browse the repository at this point in the history
🔧 is-square & is-invisible bulma to tailwind
  • Loading branch information
vikiival authored Dec 26, 2024
2 parents 2597537 + 65142ea commit 5d0b380
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
15 changes: 5 additions & 10 deletions components/search/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,8 @@
<img
v-if="!isTouchDevice"
class="search-bar-keyboard-icon"
:class="{ 'is-invisible': name || inputFocused }"
src="~/assets/svg/search-k-keyboard.svg"
alt="press k to focus search input"
>
<img
v-if="!isTouchDevice"
class="search-bar-keyboard-icon"
:class="{ 'is-invisible': !name && !inputFocused }"
src="~/assets/svg/k-search-enter.svg"
alt="press enter to start search"
:src="desktopKeyboardIcon.src"
:alt="desktopKeyboardIcon.alt"
>
</div>
</template>
Expand All @@ -80,6 +72,8 @@ import type { PropType } from 'vue'
import type { SearchQuery } from './types'
import { useCollectionSearch } from '@/components/search/utils/useCollectionSearch'
import SearchSuggestion from '@/components/search/SearchSuggestion.vue'
import SearchKKeyboard from '@/assets/svg/search-k-keyboard.svg'
import SearchKEnter from '@/assets/svg/k-search-enter.svg'
const isTouchDevice = 'ontouchstart' in document.documentElement
Expand Down Expand Up @@ -116,6 +110,7 @@ const placeholderContent = computed(() =>
)
const showDefaultSuggestions = computed(() => isAssetHub.value)
const desktopKeyboardIcon = computed(() => name.value || inputFocused.value ? { src: SearchKEnter, alt: 'press enter to start search' } : { src: SearchKKeyboard, alt: 'press k to focus search input' })
function exitCollectionSearch() {
if (isCollectionSearchMode.value && !name.value) {
Expand Down
8 changes: 2 additions & 6 deletions components/shared/modals/ModalWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
:expanded="expanded"
:class="{
'modal-wrapper-button__right': isRight,
'is-invisible': isButtonHidden,
'is-squared': isSquared,
'invisible': isButtonHidden,
'size-9': isSquared,
}"
:variant="variant"
no-shadow
Expand Down Expand Up @@ -77,8 +77,4 @@ const variant = computed(() => (isSquared.value ? 'border-icon' : undefined))
.modal-wrapper-button__right {
float: right;
}
.is-squared {
width: 36px;
height: 36px;
}
</style>
2 changes: 1 addition & 1 deletion components/shared/nftCard/NftCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

<template v-else>
<div class="media-object nft-media">
<div class="is-square image">
<div class="pt-[100%] image">
<NeoSkeleton
:rounded="false"
full-size
Expand Down
2 changes: 1 addition & 1 deletion components/shared/nftCard/NftCardSkeleton.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="nft-card">
<div class="media-object nft-media">
<div class="is-square image">
<div class="pt-[100%] image">
<NeoSkeleton
:rounded="false"
full-size
Expand Down

0 comments on commit 5d0b380

Please sign in to comment.