mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Merge pull request #6378 from lasniscinote/gl_SCI_9435
Not responsive task page [SCI-9435]
This commit is contained in:
commit
60acd42614
4 changed files with 16 additions and 6 deletions
|
@ -13,7 +13,9 @@
|
|||
.protocol-buttons-group {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
column-gap: 1rem;
|
||||
row-gap: .4rem;
|
||||
}
|
||||
|
||||
.portocol-header-left-part {
|
||||
|
@ -47,7 +49,6 @@
|
|||
background-position: top;
|
||||
background-size: 10px 1px;
|
||||
background-repeat: repeat-x;
|
||||
|
||||
border-bottom: 1px dotted transparent;
|
||||
content: "";
|
||||
display: inline-block;
|
||||
|
@ -102,3 +103,14 @@
|
|||
color: var(--sn-grey);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1395px) {
|
||||
.task-section-header {
|
||||
height: 7.44rem;
|
||||
}
|
||||
|
||||
.protocol-buttons-group {
|
||||
flex-wrap: wrap;
|
||||
margin: 1rem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,6 @@ export default {
|
|||
'top',
|
||||
stickyNavigationHeight + parseInt($(this.secondaryNavigation).css('top'), 10)
|
||||
);
|
||||
|
||||
this.lastScrollTop = window.scrollY; // Save last scroll position to when user scroll up/down
|
||||
},
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<div class="portocol-header-left-part grow">
|
||||
<template v-if="headerSticked && moduleName">
|
||||
<i class="sn-icon sn-icon-navigator sci--layout--navigator-open cursor-pointer p-1.5 border rounded border-sn-light-grey mr-4"></i>
|
||||
<div @click="scrollTop" class="task-section-title w-[calc(100%_-_4rem)] cursor-pointer">
|
||||
<div @click="scrollTop" class="task-section-title w-[calc(100%_-_4rem)] min-w-[5rem] cursor-pointer">
|
||||
<h2 class="truncate leading-6">{{ moduleName }}</h2>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -428,7 +428,6 @@
|
|||
$.post(this.urls.publish_url, {version_comment: comment, view: 'show'})
|
||||
},
|
||||
scrollTop() {
|
||||
console.log("clicekd")
|
||||
window.scrollTo(0, 0);
|
||||
setTimeout(() => {
|
||||
$('.my_module-name .view-mode').trigger('click');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="flex items-center dropdown my-module-protocol-status">
|
||||
<div class="flex items-center dropdown my-module-protocol-status whitespace-nowrap">
|
||||
<% if @protocol.linked? %>
|
||||
<span class="status-label linked">
|
||||
[<%= t("my_modules.protocols.protocol_status_bar.linked") %>]
|
||||
|
|
Loading…
Reference in a new issue