mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
Fixed checklist boxes getting bulletpoints [SCI-9487]
This commit is contained in:
parent
252479a748
commit
30ded70f7b
2 changed files with 4 additions and 12 deletions
|
@ -17,7 +17,7 @@
|
|||
<span class="sci-checkbox-label" >
|
||||
</span>
|
||||
</div>
|
||||
<div v-else class="w-6"></div>
|
||||
<div v-else class="h-1 w-1 bg-sn-black rounded-full mt-auto mb-auto"></div>
|
||||
<div class="pr-24 relative flex items-start max-w-[90ch]"
|
||||
:class="{
|
||||
'pointer-events-none': !checklistItem.attributes.isNew && !updateUrl,
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
<div
|
||||
v-else
|
||||
ref="view"
|
||||
class="grid sci-cursor-edit leading-5 border-0 py-1 outline-none inline-block border-solid border-y border-transparent"
|
||||
class="grid sci-cursor-edit leading-5 border-0 py-1 outline-none border-solid border-y border-transparent"
|
||||
:class="{ 'text-sn-grey font-normal': isBlank, 'whitespace-pre-line': !singleLine }"
|
||||
@click="enableEdit($event)"
|
||||
>
|
||||
<span :class="{'truncate': singleLine, 'list-item': viewMode !== 'active'}" v-if="smartAnnotation" v-html="sa_value || placeholder" ></span>
|
||||
<span :class="{'truncate': singleLine }" v-if="smartAnnotation" v-html="sa_value || placeholder" ></span>
|
||||
<span :class="{'truncate': singleLine}" v-else>{{newValue || placeholder}}</span>
|
||||
</div>
|
||||
|
||||
|
@ -79,7 +79,6 @@
|
|||
editing: false,
|
||||
dirty: false,
|
||||
newValue: '',
|
||||
viewMode: null
|
||||
}
|
||||
},
|
||||
mixins: [UtilsMixin],
|
||||
|
@ -91,13 +90,6 @@
|
|||
if (this.editOnload) {
|
||||
this.enableEdit();
|
||||
}
|
||||
|
||||
// determine whether view mode is in projects(active) or templates(inactive)
|
||||
const urlSearchParam = window.location?.search
|
||||
if (!urlSearchParam) return
|
||||
if (urlSearchParam.includes('view_mode=active')) {
|
||||
this.viewMode = 'active'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
editing() {
|
||||
|
@ -111,7 +103,7 @@
|
|||
},
|
||||
autofocus() {
|
||||
this.handleAutofocus();
|
||||
}
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
isBlank() {
|
||||
|
|
Loading…
Reference in a new issue