mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-30 00:45:28 +08:00
Fix assigned task filter issues [SCI-6492] (#3837)
This commit is contained in:
parent
e59b18e25d
commit
85ad4a692a
3 changed files with 20 additions and 0 deletions
|
@ -45,6 +45,10 @@
|
|||
padding: 0;
|
||||
width: 460px;
|
||||
|
||||
.dropdown-selector {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.header {
|
||||
align-items: center;
|
||||
border-bottom: $border-default;
|
||||
|
@ -168,4 +172,12 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.task-option {
|
||||
background-image: image-url("icon_small/task-black.svg");
|
||||
background-position: left center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 1em;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -226,6 +226,7 @@
|
|||
border-radius: 1px;
|
||||
color: $color-white;
|
||||
content: "";
|
||||
flex-shrink: 0;
|
||||
font-size: calc(var(--sci-checkbox-size) - var(--sci-checkbox-size) * .375);
|
||||
height: var(--sci-checkbox-size);
|
||||
line-height: calc(var(--sci-checkbox-size) - 2px);
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
:groupSelector="true"
|
||||
:selectedValue="this.value"
|
||||
:options="this.my_modules"
|
||||
:optionLabel="renderOption"
|
||||
:closeOnSelect="false"
|
||||
:dataSelectMultipleName="this.i18n.t('repositories.show.repository_filter.filters.types.RepositoryMyModuleValue.multiple_selected')"
|
||||
:dataSelectMultipleAllSelected="this.i18n.t('repositories.show.repository_filter.filters.types.RepositoryMyModuleValue.all_selected')"
|
||||
:selectorId="`MyModulesSelector${this.filter.id}`"
|
||||
|
@ -55,6 +57,11 @@
|
|||
methods: {
|
||||
updateValue(value) {
|
||||
this.value = value;
|
||||
},
|
||||
renderOption(data) {
|
||||
return `<span class="task-option">
|
||||
${data.label}
|
||||
</span>`;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
Loading…
Add table
Reference in a new issue