mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 16:45:18 +08:00
Fix project and experiment placeholder color and wording [SCI-11921]
This commit is contained in:
parent
067849e3d3
commit
d4028d750a
3 changed files with 7 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
||||||
<div v-if="editMode">
|
<div v-if="editMode">
|
||||||
<TinymceEditor
|
<TinymceEditor
|
||||||
v-model="description"
|
v-model="description"
|
||||||
|
:placeholder="i18n.t('projects.index.add_description')"
|
||||||
textareaId="descriptionModelInput"
|
textareaId="descriptionModelInput"
|
||||||
></TinymceEditor>
|
></TinymceEditor>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<template v-if="params.dtComponent.currentViewRender === 'table'">
|
<template v-if="params.dtComponent.currentViewRender === 'table'">
|
||||||
<div class="group relative flex items-center group-hover:marker text-xs h-full w-full leading-[unset]">
|
<div class="group relative flex items-center group-hover:marker text-xs h-full w-full leading-[unset]">
|
||||||
<div ref="descripitonBox" class="flex gap-2 w-full items-center text-sm leading-[unset]">
|
<div ref="descripitonBox" class="flex gap-2 w-full items-center text-sm leading-[unset]">
|
||||||
<span v-if="removeTags(params.data.description).length > 0" class="cursor-pointer line-clamp-1 leading-[unset]"
|
<span v-if="params.data.description && removeTags(params.data.description).length > 0" class="cursor-pointer line-clamp-1 leading-[unset]"
|
||||||
@click.stop="showDescriptionModal">
|
@click.stop="showDescriptionModal">
|
||||||
{{ removeTags(params.data.description) }}
|
{{ removeTags(params.data.description) }}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -199,6 +199,7 @@ export default {
|
||||||
initCssOverrides(editor) {
|
initCssOverrides(editor) {
|
||||||
const editorIframe = $(`#${editor.id}`).next().find('.tox-edit-area iframe');
|
const editorIframe = $(`#${editor.id}`).next().find('.tox-edit-area iframe');
|
||||||
const primaryColor = '#104da9';
|
const primaryColor = '#104da9';
|
||||||
|
const placeholderColor = '#98A2B3';
|
||||||
editorIframe.contents().find('head').append(`<style type="text/css">
|
editorIframe.contents().find('head').append(`<style type="text/css">
|
||||||
img::-moz-selection{background:0 0}
|
img::-moz-selection{background:0 0}
|
||||||
img::selection{background:0 0}
|
img::selection{background:0 0}
|
||||||
|
@ -209,6 +210,10 @@ export default {
|
||||||
.mce-content-body div#mceResizeHandlene{border-right: 2px solid ${primaryColor}; border-top: 2px solid ${primaryColor}}
|
.mce-content-body div#mceResizeHandlene{border-right: 2px solid ${primaryColor}; border-top: 2px solid ${primaryColor}}
|
||||||
.mce-content-body div#mceResizeHandlesw{border-left: 2px solid ${primaryColor}; border-bottom: 2px solid ${primaryColor}}
|
.mce-content-body div#mceResizeHandlesw{border-left: 2px solid ${primaryColor}; border-bottom: 2px solid ${primaryColor}}
|
||||||
.mce-content-body div#mceResizeHandlese{border-right: 2px solid ${primaryColor}; border-bottom: 2px solid ${primaryColor}}
|
.mce-content-body div#mceResizeHandlese{border-right: 2px solid ${primaryColor}; border-bottom: 2px solid ${primaryColor}}
|
||||||
|
.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before {
|
||||||
|
color: ${placeholderColor};
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
h1 {font-size: 24px !important }
|
h1 {font-size: 24px !important }
|
||||||
h2 {font-size: 18px !important }
|
h2 {font-size: 18px !important }
|
||||||
h3 {font-size: 16px !important }
|
h3 {font-size: 16px !important }
|
||||||
|
|
Loading…
Add table
Reference in a new issue