Protocol editing CSS fixes [SCI-6940] ()

This commit is contained in:
artoscinote 2022-07-12 10:43:01 +02:00 committed by GitHub
parent c89968453e
commit 765e5b99bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 6 deletions
app
assets/stylesheets
my_modules/protocols
steps
themes
javascript/vue/protocol
views/protocols

View file

@ -519,7 +519,7 @@
width: 100%;
}
.status-buttons .btn {
.status-buttons div > .btn {
min-width: 230px;
}

View file

@ -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;

View file

@ -514,6 +514,10 @@ a[data-toggle="tooltip"] {
> .sci-btn-group {
margin-right: 30px;
form.button_to {
float: left;
}
}
}
@media(max-width:768px) {

View file

@ -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>

View file

@ -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>

View file

@ -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">&nbsp;<%= t("protocols.index.import") %></span></button>
<span class="fas fa-download"></span><span class="hidden-xs">&nbsp;<%= t("protocols.index.import") %></span>
</button>
<% if can_create_protocols_in_repository?(@current_team) %>
<ul class="dropdown-menu">
<li>