mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-04-01 18:02:27 +08:00
Protocol editing CSS fixes [SCI-6940] (#4194)
This commit is contained in:
parent
c89968453e
commit
765e5b99bd
6 changed files with 16 additions and 6 deletions
app
assets/stylesheets
javascript/vue/protocol
views/protocols
|
@ -519,7 +519,7 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.status-buttons .btn {
|
||||
.status-buttons div > .btn {
|
||||
min-width: 230px;
|
||||
}
|
||||
|
||||
|
|
|
@ -91,8 +91,13 @@
|
|||
justify-content: center;
|
||||
padding: 2em;
|
||||
|
||||
.title {
|
||||
.btn.title {
|
||||
cursor: pointer;
|
||||
font-size: 1em;
|
||||
|
||||
&:hover {
|
||||
background-color: $color-alto;
|
||||
}
|
||||
|
||||
.fas {
|
||||
margin: 0 .5em;
|
||||
|
|
|
@ -514,6 +514,10 @@ a[data-toggle="tooltip"] {
|
|||
|
||||
> .sci-btn-group {
|
||||
margin-right: 30px;
|
||||
|
||||
form.button_to {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media(max-width:768px) {
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
</div>
|
||||
</template>
|
||||
</div>
|
||||
<button v-if="urls.add_step_url" class="btn btn-primary" @click="addStep(steps.length)">
|
||||
<button v-if="steps.length > 0 && urls.add_step_url" class="btn btn-primary" @click="addStep(steps.length)">
|
||||
<i class="fas fa-plus"></i>
|
||||
{{ i18n.t("protocols.steps.new_step") }}
|
||||
</button>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
@dragover.prevent
|
||||
>
|
||||
<input type="file" class="hidden" ref=fileSelector @change="uploadFiles" multiple />
|
||||
<div class="title" @click="$refs.fileSelector.click()" tabindex="0" @keyup.enter="$refs.fileSelector.click()">
|
||||
<div class="title btn btn-light" @click="$refs.fileSelector.click()" tabindex="0" @keyup.enter="$refs.fileSelector.click()">
|
||||
<i class="fas fa-upload"></i>
|
||||
{{ i18n.t("protocols.steps.attachments.file_modal.drag_zone_title") }}
|
||||
</div>
|
||||
|
|
|
@ -50,11 +50,12 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<div id="import-export-protocols" class="sci-btn-group" role="group">
|
||||
<button class="btn btn-light btn-open-file <%= 'disabled hidden' unless can_create_protocols_in_repository?(@current_team) %>"
|
||||
<button class="btn btn-light btn-open-file <%= 'disabled hidden' unless can_create_protocols_in_repository?(@current_team) %>"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<span class="fas fa-download"></span><span class="hidden-xs"> <%= t("protocols.index.import") %></span></button>
|
||||
<span class="fas fa-download"></span><span class="hidden-xs"> <%= t("protocols.index.import") %></span>
|
||||
</button>
|
||||
<% if can_create_protocols_in_repository?(@current_team) %>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
|
|
Loading…
Add table
Reference in a new issue