Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 22 additions & 13 deletions apps/user_status/src/components/ClearAtSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,27 @@
<label class="clear-at-select__label" for="clearStatus">
{{ $t('user_status', 'Clear status after') }}
</label>
<NcMultiselect id="clearStatus"
label="label"
:value="option"
<NcSelect id="clearStatus"
class="clear-at-select__select"
:options="options"
open-direction="top"
@select="select" />
:value="option"
:clearable="false"
placement="top"
@option:selected="select" />
</div>
</template>

<script>
import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect'
import { getAllClearAtOptions } from '../services/clearAtOptionsService'
import { clearAtFilter } from '../filters/clearAtFilter'
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
import { getAllClearAtOptions } from '../services/clearAtOptionsService.js'
import { clearAtFilter } from '../filters/clearAtFilter.js'

// FIXME Initial dropdown width is not equal to input width

export default {
name: 'ClearAtSelect',
components: {
NcMultiselect,
NcSelect,
},
props: {
clearAt: {
Expand Down Expand Up @@ -71,7 +74,7 @@ export default {
/**
* Triggered when the user selects a new option.
*
* @param {object=} option The new selected option
* @param {object} option The new selected option
*/
select(option) {
if (!option) {
Expand All @@ -91,12 +94,18 @@ export default {
align-items: center;

&__label {
margin-right: 10px;
margin-right: 12px;
}

.multiselect {
&__select {
flex-grow: 1;
min-width: 130px;
}
}
</style>

<style lang="scss">
.vs__dropdown-menu {
// See https://github.com/nextcloud/nextcloud-vue/blob/v7.5.0/src/components/NcModal/NcModal.vue#L711
z-index: 9999;
}
</style>
4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/user-status-modal-8299.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/user-status-modal-8299.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/user_status-menu.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/user_status-menu.js.map

Large diffs are not rendered by default.