Merge pull request #51418 from nextcloud/fix/unified-search-bar

fix(unified-search): do not overlap search bar with button
pull/51568/head
Ferdinand Thiessen 7 months ago committed by GitHub
commit 8035c8d6b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      core/src/components/UnifiedSearch/UnifiedSearchLocalSearchBar.vue
  2. 4
      dist/core-unified-search.js
  3. 2
      dist/core-unified-search.js.map

@ -123,7 +123,7 @@ function clearAndCloseSearch() {
// this can break at any time the component library changes
:deep(input) {
// search global width + close button width
padding-inline-end: calc(v-bind('searchGlobalButtonWidth') + var(--default-clickable-area));
padding-inline-end: calc(v-bind('searchGlobalButtonCSSWidth') + var(--default-clickable-area));
}
}
}
@ -132,8 +132,8 @@ function clearAndCloseSearch() {
transition: width var(--animation-quick) linear;
}
// Make the position absolut during the transition
// this is needed to "hide" the button begind it
// Make the position absolute during the transition
// this is needed to "hide" the button behind it
.v-leave-active {
position: absolute !important;
}
@ -141,7 +141,7 @@ function clearAndCloseSearch() {
.v-enter,
.v-leave-to {
&.local-unified-search {
// Start with only the overlayed button
// Start with only the overlay button
--local-search-width: var(--clickable-area-large);
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save