From c27c7245bcd135a7f2010a396d76c81f7c03021b Mon Sep 17 00:00:00 2001 From: sboursen-scinote Date: Thu, 3 Aug 2023 15:14:44 +0200 Subject: [PATCH] Fix various CSS issues [SCI-8940] - Maintain the position of the top navigation controls when user is without team. - Add "missing" avatar to avatar change modal - Disable wrapping of (A) in archived P/E/T - Fix padding/margin issues in Archived tasks and Protocol templates --- app/assets/stylesheets/label_templates/show.scss | 4 ++-- app/assets/stylesheets/projects.scss | 2 +- app/assets/stylesheets/protocols/protocol.scss | 2 +- app/assets/stylesheets/themes/scinote.scss | 1 + app/javascript/vue/navigation/top_menu.vue | 4 ++-- app/views/experiments/_show_header.html.erb | 2 +- app/views/my_modules/_header.html.erb | 2 +- app/views/projects/show/_header.html.erb | 2 +- app/views/users/shared/_user_avatars_modal.html.erb | 4 ++-- 9 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/assets/stylesheets/label_templates/show.scss b/app/assets/stylesheets/label_templates/show.scss index 2a1c3cd70..6e548560e 100644 --- a/app/assets/stylesheets/label_templates/show.scss +++ b/app/assets/stylesheets/label_templates/show.scss @@ -12,9 +12,9 @@ background: $color-white; border-bottom: $border-tertiary; display: flex; - margin-left: -2em; + margin: 0 -2em; padding: .25em 2em; - width: calc(100% + 4em); + width: calc(100% + 3em); .label-template-icon { flex-shrink: 0; diff --git a/app/assets/stylesheets/projects.scss b/app/assets/stylesheets/projects.scss index 00bb3c329..7301b437d 100644 --- a/app/assets/stylesheets/projects.scss +++ b/app/assets/stylesheets/projects.scss @@ -300,7 +300,7 @@ path, ._jsPlumb_endpoint { } .designated-users-task-title { - padding-left: 15px; + padding: 7px 0 0 15px; } .user-role { diff --git a/app/assets/stylesheets/protocols/protocol.scss b/app/assets/stylesheets/protocols/protocol.scss index 626662ec2..636fe4395 100644 --- a/app/assets/stylesheets/protocols/protocol.scss +++ b/app/assets/stylesheets/protocols/protocol.scss @@ -6,7 +6,7 @@ .content-pane.protocols-show { background-color: $color-alto; - min-height: calc(100vh - var(--navbar-height)); + min-height: calc(100vh - var(--navbar-height) - 40px); overflow: hidden; padding: 0 0 10px; diff --git a/app/assets/stylesheets/themes/scinote.scss b/app/assets/stylesheets/themes/scinote.scss index 3621f393f..33ba92e1c 100644 --- a/app/assets/stylesheets/themes/scinote.scss +++ b/app/assets/stylesheets/themes/scinote.scss @@ -1255,6 +1255,7 @@ body > .loading-overlay { .avatar-image { position: absolute; + width: 100%; img { border-radius: 50%; diff --git a/app/javascript/vue/navigation/top_menu.vue b/app/javascript/vue/navigation/top_menu.vue index 14be00683..d15f7ec7b 100644 --- a/app/javascript/vue/navigation/top_menu.vue +++ b/app/javascript/vue/navigation/top_menu.vue @@ -4,7 +4,7 @@ -
+
- \ No newline at end of file +