Unverified Commit 5aaec51b authored by Daniel's avatar Daniel Committed by GitHub

Adds some responsiveness to table detail layouts (#391)

parent 5e4a466b
...@@ -67,49 +67,61 @@ $resource-header-height: 84px; ...@@ -67,49 +67,61 @@ $resource-header-height: 84px;
} }
} }
// Outer column layout
// 630 | 414+ Flexible layout
.column-layout-1 { .column-layout-1 {
display: flex; display: flex;
height: calc(100% - #{$resource-header-height}); height: calc(100% - #{$resource-header-height});
> .left-panel { > .left-panel {
border-right: 4px solid $divider;
flex-basis: 600px;
flex-shrink: 0;
overflow-y: scroll;
padding: 0 24px;
> .banner { > .banner {
border: 1px solid $stroke; border: 1px solid $stroke;
height: 40px; height: 40px;
margin: 24px 24px 0 24px; margin: 24px 24px 0 24px;
padding: 8px; padding: 8px;
} }
border-right: 4px solid $divider;
flex-basis: 634px; // 630 + 4px border
flex-shrink: 0;
overflow-y: scroll;
padding: 0 24px;
} }
> .right-panel { > .right-panel {
flex-basis: 414px; flex-basis: 500px;
flex-grow: 1; flex-grow: 1;
flex-shrink: 0; flex-shrink: 0;
overflow-y: scroll; overflow-y: scroll;
width: 0; // Required for text truncation width: 0; // Required for text truncation
} }
@media(max-width: 1440px) {
> .left-panel {
flex-basis: 500px;
}
}
@media(max-width: 1200px) {
> .left-panel {
flex-basis: 415px;
}
}
} }
// 313 | 245 Fixed Layout // Inner column layout
.column-layout-2 { .column-layout-2 {
display: flex; display: flex;
flex-basis: 100%; flex-basis: 100%;
> .left-panel { > .left-panel {
flex-basis: 313px; flex-basis: 262px;
margin-right: 24px; margin-right: 12px;
flex-direction: column; flex-direction: column;
} }
> .right-panel { > .right-panel {
flex-basis: 245px; flex-basis: 262px;
margin-left: 12px;
} }
} }
......
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
.owner-editor-component { .owner-editor-component {
.avatar-label-component { .avatar-label-component {
.avatar-label { .avatar-label {
display: inline-block;
margin-left: 4px; margin-left: 4px;
width: calc(100% - 28px);
word-break: break-word;
} }
} }
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
flex-basis: 12px; flex-basis: 12px;
height: 40px; height: 40px;
width: 12px; width: 12px;
margin-right: 16px; margin-right: 8px;
} }
.range-labels { .range-labels {
flex-basis: 50px; flex-basis: 42px;
} }
} }
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