Skip to content

Commit

Permalink
fixup! fix: migrate advanced search to nc dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
  • Loading branch information
hamza221 committed Jul 22, 2024
1 parent 33a8ff4 commit 815f81c
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions src/components/SearchMessages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcCheckboxRadioSwitch
from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import Tune from 'vue-material-design-icons/Tune.vue'
import IconClose from '@mdi/svg/svg/close.svg?raw'
import IconMagnify from '@mdi/svg/svg/magnify.svg?raw'
import IconClose from '@mdi/svg/svg/close.svg'
import IconMagnify from '@mdi/svg/svg/magnify.svg'
import { translate as t } from '@nextcloud/l10n'
import debouncePromise from 'debounce-promise'
Expand Down Expand Up @@ -358,13 +358,13 @@ export default {
dialogButtons: [
{
label: t('mail', 'Clear'),
callback: () => this.resetFilter,
callback: () => this.resetFilter(),
type: 'secondary',
icon: IconClose,
},
{
label: t('mail', 'Search'),
callback: () => this.closeSearchModal,
callback: () => this.closeSearchModal(),
type: 'primary',
icon: IconMagnify,
},
Expand Down Expand Up @@ -651,20 +651,7 @@ export default {
z-index: 2;
}
.search-modal .modal-container {
min-height: auto;
overflow: visible !important;
position: relative;
display: flex !important;
flex-direction: column;
.modal-title {
padding: 16px 30px 0 30px;
position: relative;
/* needs while modal-container__close not set */
display: inline-block;
}
.search-modal {
.modal-inner--content {
padding: 16px 0 36px 0;
overflow-y: scroll;
Expand Down Expand Up @@ -737,10 +724,6 @@ export default {
}
}
.modal-wrapper--normal .modal-container {
position: relative
}
.button-vue.search-messages--close.button-vue--icon-only {
position: absolute;
width: auto;
Expand Down

0 comments on commit 815f81c

Please sign in to comment.