Unverified Commit e2c13990 authored by Marcos Iglesias's avatar Marcos Iglesias Committed by GitHub

fix: Fixes scrolling on results pages and pagination (#479)

* Makes search sections scrollable as in Table and Dashboard details

* Adjusting spacing on sidebars

* Fixing spacing

* Fixing spacing
parent f8106352
...@@ -15,14 +15,15 @@ $loading-curve: cubic-bezier(0.45, 0, 0.15, 1); ...@@ -15,14 +15,15 @@ $loading-curve: cubic-bezier(0.45, 0, 0.15, 1);
.is-shimmer-animated { .is-shimmer-animated {
animation: $loading-duration shimmer $loading-curve infinite; animation: $loading-duration shimmer $loading-curve infinite;
background-image: linear-gradient( background-image:
to right, linear-gradient(
$gray10 0%, to right,
$gray10 33%, $gray10 0%,
$gray5 50%, $gray10 33%,
$gray10 67%, $gray5 50%,
$gray10 100% $gray10 67%,
); $gray10 100%
);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 300% 100%; background-size: 300% 100%;
} }
@import 'variables'; @import 'variables';
$resource-header-height: 84px; $resource-header-height: 84px;
$aside-separation-space: 40px;
.resource-detail-layout { .resource-detail-layout {
height: calc(100vh - #{$nav-bar-height} - #{$footer-height}); height: calc(100vh - #{$nav-bar-height} - #{$footer-height});
...@@ -93,8 +95,8 @@ $resource-header-height: 84px; ...@@ -93,8 +95,8 @@ $resource-header-height: 84px;
border-right: 4px solid $divider; border-right: 4px solid $divider;
flex-basis: 600px; flex-basis: 600px;
flex-shrink: 0; flex-shrink: 0;
overflow-y: scroll; overflow-y: auto;
padding: 0 24px; padding: 0 24px $aside-separation-space;
> .banner { > .banner {
border: 1px solid $stroke; border: 1px solid $stroke;
...@@ -110,8 +112,8 @@ $resource-header-height: 84px; ...@@ -110,8 +112,8 @@ $resource-header-height: 84px;
.editable-section, .editable-section,
.metadata-section { .metadata-section {
margin-top: $aside-separation-space;
display: inline-table; display: inline-table;
margin-top: 40px;
min-height: 70px; min-height: 70px;
} }
...@@ -154,7 +156,6 @@ $resource-header-height: 84px; ...@@ -154,7 +156,6 @@ $resource-header-height: 84px;
// Inner column layout // Inner column layout
.column-layout-2 { .column-layout-2 {
display: flex; display: flex;
flex-basis: 100%;
> .left-panel { > .left-panel {
flex-basis: 262px; flex-basis: 262px;
......
...@@ -18,11 +18,6 @@ ...@@ -18,11 +18,6 @@
} }
.image-preview { .image-preview {
margin-top: $spacer-4; margin-top: $spacer-1;
min-height: -webkit-fill-available;
img {
margin-bottom: $spacer-4;
}
} }
} }
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
display: flex; display: flex;
flex: 0 0 $search-panel-width; flex: 0 0 $search-panel-width;
flex-direction: column; flex-direction: column;
overflow-y: scroll;
.section { .section {
padding: 32px 24px 32px 32px; padding: 32px 24px 32px 32px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.search-page { .search-page {
display: flex; display: flex;
min-height: calc(100vh - #{$nav-bar-height + $footer-height}); height: calc(100vh - #{$nav-bar-height + $footer-height});
.list-group { .list-group {
margin-top: 0; margin-top: 0;
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
.search-results { .search-results {
flex-grow: 1; flex-grow: 1;
width: 0; // Temporary hack since list-items use width % width: 0; // Temporary hack since list-items use width %
overflow-y: scroll;
} }
@media (max-width: $screen-sm-max) { @media (max-width: $screen-sm-max) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment