mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 13:44:23 +08:00
Update tag creation option design [SCI-7698]
This commit is contained in:
parent
d5bd26a31b
commit
ba442babe2
6 changed files with 23 additions and 10 deletions
|
@ -72,9 +72,9 @@
|
|||
return `<span class="my-module-tags-color" style="background:${data.params.color}"></span>
|
||||
${data.label}`;
|
||||
}
|
||||
return `<span class="my-module-tags-color"></span>
|
||||
return `<span class="my-module-tags-color new"><i class="fas fa-plus"></i></span>
|
||||
${data.label + ' '}
|
||||
<span class="my-module-tags-create-new"> (${I18n.t('my_modules.details.create_new_tag')})</span>`;
|
||||
<span class="my-module-tags-create-new"> ${I18n.t('my_modules.details.create_new_tag')}</span>`;
|
||||
},
|
||||
ajaxParams: function(params) {
|
||||
let newParams = params;
|
||||
|
|
|
@ -148,9 +148,9 @@
|
|||
return `<span class="my-module-tags-color" style="background:${data.params.color}"></span>
|
||||
${data.label}`;
|
||||
}
|
||||
return `<span class="my-module-tags-color"></span>
|
||||
${data.label + ' '}
|
||||
<span class="my-module-tags-create-new"> (${I18n.t('my_modules.details.create_new_tag')})</span>`;
|
||||
return `<span class="my-module-tags-color new"><i class="fas fa-plus"></i></span>
|
||||
${data.label + ' '}
|
||||
<span class="my-module-tags-create-new"> ${I18n.t('my_modules.details.create_new_tag')}</span>`;
|
||||
},
|
||||
onOpen: function() {
|
||||
$('.select-container .edit-button-container').removeClass('hidden');
|
||||
|
|
|
@ -50,15 +50,21 @@
|
|||
}
|
||||
|
||||
.my-module-tags-color {
|
||||
align-items: center;
|
||||
border-radius: 8px;
|
||||
display: inline-block;
|
||||
display: inline-flex;
|
||||
height: 16px;
|
||||
justify-content: center;
|
||||
margin-right: 5px;
|
||||
width: 16px;
|
||||
|
||||
&.new {
|
||||
color: $color-silver-chalice;
|
||||
}
|
||||
}
|
||||
|
||||
.my-module-tags-create-new {
|
||||
opacity: .6;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
&.open {
|
||||
|
|
|
@ -239,15 +239,21 @@
|
|||
}
|
||||
|
||||
.my-module-tags-color {
|
||||
align-items: center;
|
||||
border-radius: 8px;
|
||||
display: inline-block;
|
||||
display: inline-flex;
|
||||
height: 16px;
|
||||
justify-content: center;
|
||||
margin-right: 5px;
|
||||
width: 16px;
|
||||
|
||||
&.new {
|
||||
color: $color-silver-chalice;
|
||||
}
|
||||
}
|
||||
|
||||
.my-module-tags-create-new {
|
||||
opacity: .6;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.input-field {
|
||||
|
|
|
@ -23,6 +23,7 @@ $font-fas-angle-double-left: "\f100";
|
|||
$font-fas-angle-double-right: "\f101";
|
||||
$font-fas-exclamation-circle: "\f06a";
|
||||
$font-fas-caret-up: "\f0d8";
|
||||
$font-fas-plus: "\f02b";
|
||||
|
||||
@mixin font-h1 {
|
||||
font-size: 24px;
|
||||
|
|
|
@ -979,7 +979,7 @@ en:
|
|||
tags: "Tags:"
|
||||
no_tags: "+ Add tags"
|
||||
manage_tags: "Manage tags"
|
||||
create_new_tag: "create new"
|
||||
create_new_tag: "→ Create new"
|
||||
recent_protocols_from_repository: "Recent protocols from the Repository"
|
||||
code: "ID: "
|
||||
recent_protocols_from_repository: "Recent protocols from the Templates"
|
||||
|
|
Loading…
Add table
Reference in a new issue