Skip to content

Commit

Permalink
enhanc: tidy up search bar
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Jul 23, 2024
1 parent af9b1f8 commit aa2ad42
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/components/SearchMessages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
<input v-model="query"
type="text"
class="search-messages--input"
:placeholder="t('mail', 'Search in mailbox')"
:aria-label="t('mail', 'Search in mailbox')"
@click="toggleButtons">
<NcButton type="tertiary" class="search-messages--filter" @click="moreSearchActions = true">
<template #icon>
<Tune :size="20" />
</template>
</NcButton>
<NcButton v-if="filterChanged"
:aria-label="t('mail', 'Close')"
class="search-messages--close"
Expand All @@ -31,6 +36,7 @@
</NcActionButton>
</NcActions>
<NcDialog v-if="moreSearchActions"
<NcModal v-if="moreSearchActions"

Check failure on line 39 in src/components/SearchMessages.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 4 tabs but found 3 tabs

Check failure on line 39 in src/components/SearchMessages.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Parsing error: unexpected-character-in-attribute-name

Check failure on line 39 in src/components/SearchMessages.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Parsing error: duplicate-attribute

Check failure on line 39 in src/components/SearchMessages.vue

View workflow job for this annotation

GitHub Actions / NPM lint

'v-if' should be on a new line
:name="t('mail', 'Search parameters')"
size="normal"
class="search-modal"
Expand Down Expand Up @@ -724,18 +730,33 @@ export default {
}
}
.modal-wrapper--normal .modal-container {
position: relative
}
.button-vue.search-messages--filter.button-vue--icon-only {
position: absolute;
width: auto;
height: auto;
z-index: 5;
right: 5px;
left: auto;
box-shadow: none !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
}
.button-vue.search-messages--close.button-vue--icon-only {
position: absolute;
width: auto;
height: auto;
z-index: 5;
right: 45px;
right: 35px;
left: auto;
box-shadow: none !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
top: 6px;
}
.button-reset-filter {
Expand Down

0 comments on commit aa2ad42

Please sign in to comment.