Merge pull request #5641 from aignatov-bio/ai-sci-ui-css-fixes

UI CSS Fixes
This commit is contained in:
aignatov-bio 2023-06-21 12:04:12 +02:00 committed by GitHub
commit e520540f99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 35 deletions

View file

@ -25,7 +25,7 @@
if (data.error) {
let oldLink = '';
if (data.preview_url) {
oldLink = `<a href="#" class="file-preview-link flex items-center gap-1 docx hover:no-underline" data-preview-url="${data.preview_url}">
oldLink = `<a href="#" class="file-preview-link flex items-center gap-1 docx hover:no-underline whitespace-nowrap" data-preview-url="${data.preview_url}">
(<i class="fas fa-file-docx"></i>
${I18n.t('projects.reports.index.previous_docx')})
</a>`;
@ -43,7 +43,7 @@
}
if (data.preview_url) {
return `<a href="#" class="file-preview-link flex items-center gap-1 docx hover:no-underline" data-preview-url="${data.preview_url}">
return `<a href="#" class="file-preview-link flex items-center gap-1 docx hover:no-underline whitespace-nowrap" data-preview-url="${data.preview_url}">
<i class="sn-icon sn-icon-file-word"></i>
${I18n.t('projects.reports.index.docx')}
</a>`;
@ -55,7 +55,7 @@
if (data.error) {
let oldLink = '';
if (data.preview_url) {
oldLink = `<a href="#" class="file-preview-link flex items-center gap-1 pdf hover:no-underline" data-preview-url="${data.preview_url}">
oldLink = `<a href="#" class="file-preview-link flex items-center gap-1 pdf hover:no-underline whitespace-nowrap" data-preview-url="${data.preview_url}">
(<i class="fas fa-file-pdf"></i>
${I18n.t('projects.reports.index.previous_pdf')})
</a>`;
@ -73,7 +73,7 @@
}
if (data.preview_url) {
return `<a href="#" class="file-preview-link flex items-center gap-1 pdf hover:no-underline" data-preview-url="${data.preview_url}">
return `<a href="#" class="file-preview-link flex items-center gap-1 pdf hover:no-underline whitespace-nowrap" data-preview-url="${data.preview_url}">
<i class="fas fa-file-pdf"></i>
${I18n.t('projects.reports.index.pdf')}
</a>`;

View file

@ -57,9 +57,6 @@
}
}
.view-switch-button {
margin-right: .25em;
}
.canvas-preview-img,
.canvas-preview-rect {

View file

@ -45,8 +45,10 @@
.left,
.middle,
.right {
align-items: center;
display: flex;
flex-direction: inherit;
gap: .5rem;
}
}
}

View file

@ -57,7 +57,6 @@
.view-switch-button {
outline: 1px solid $color-alto;
margin-right: .25em;
}
.view-switch,

View file

@ -206,7 +206,7 @@
.activity-card {
cursor: default;
margin-right: 15px;
padding: 5px 0 5px 40px;
padding: 5px 0 5px 5px;
&:hover {
background-color: $color-concrete;
@ -230,16 +230,6 @@
width: 20px;
}
}
&:nth-child(1) {
height: 20px;
margin-left: -35px;
.global-avatar-container {
position: relative;
top: 10px;
}
}
}
}

View file

@ -21,10 +21,6 @@ $color-module-hover: $brand-primary;
align-items: center;
display: flex;
#edit-canvas-button, .new-my-module-button {
margin-right: 5px;
}
.actions-button {
margin-right: 15px;

View file

@ -47,8 +47,9 @@
}
.protocol-section-caret {
align-items: center;
color: $color-volcano;
display: inline-block;
display: inline-flex;
padding: .5em;
text-decoration: none;

View file

@ -41,7 +41,7 @@
position: absolute;
right: 4px;
text-align: center;
top: -1px;
top: 6px;
&.sn-icon-search.simple-dropdown {
color: $brand-focus;

View file

@ -17,12 +17,12 @@
<i class="sn-icon sn-icon-sort"></i>
</div>
<div v-else class="step-element-grip-placeholder"></div>
<a class="step-collapse-link"
<a class="step-collapse-link hover:no-underline focus:no-underline"
:href="'#stepBody' + step.id"
data-toggle="collapse"
data-remote="true"
@click="toggleCollapsed">
<span class="sn-icon sn-icon-right"></span>
<span class="sn-icon sn-icon-right "></span>
</a>
<div v-if="!inRepository" class="step-complete-container mx-1.5" :class="{ 'step-element--locked': !urls.state_url }">
<div :class="`step-state ${step.attributes.completed ? 'completed' : ''}`"

View file

@ -23,14 +23,6 @@
data-popover-html="<%= popover_html %>"
data-user-avatar-popover-absolute-url="<%= user_avatar_popover_absolute_url %>"
>
<% unless skip_avatar %>
<span class="global-avatar-container smart-annotation">
<img
src="<%= user_avatar_absolute_url %>"
alt="avatar" class="atwho-user-img-popover"
ref="<%= 'missing-img' unless user.avatar.attached? %>%">
</span>
<% end %>
<%= user.full_name %>
</a>
<% unless skip_user_status || user_still_in_team %>