Skip to content

Commit

Permalink
Merge pull request #5541 from avalonmediasystem/itemview-tab-height
Browse files Browse the repository at this point in the history
Let tabs in itemview page span the column height
  • Loading branch information
Dananji authored Dec 22, 2023
2 parents c7aaccc + 60ac83f commit d4a9eed
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/javascript/components/MediaObjectRamp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const Ramp = ({
)
}
</Col>
<Col sm={ (master_files_count == 0) ? 12 : 4}>
<Col sm={ (master_files_count == 0) ? 12 : 4} className="ramp--tabs-panel">
{ cdl.enabled && <div dangerouslySetInnerHTML={{ __html: cdl.destroy }}/> }
<Tabs>
<Tab eventKey="details" title="Details">
Expand Down
29 changes: 21 additions & 8 deletions app/javascript/components/Ramp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,24 @@
}
}

.tab-pane {
padding:1rem;
border-bottom-left-radius: 0.25rem;
border-bottom-right-radius: 0.25rem;
max-height: 75vh;
overflow: auto;
.ramp--tabs-panel {
display: flex;
flex-direction: column;

.tab-content {
display: flex;
flex: 1;
height: 100%;
}

.tab-pane {
flex: 1;
padding:1rem;
border-bottom-left-radius: 0.25rem;
border-bottom-right-radius: 0.25rem;
max-height: inherit;
overflow: auto;
}
}

// Remove double scroll-bar for transcripts tab
Expand All @@ -181,15 +193,16 @@
/* Override Ramp styling */
.ramp--metadata-display {
min-width: fit-content !important;
height: 100%;

.ramp--metadata-display-content {
padding: 0;
max-height: inherit;
max-height: 50rem;
}
}

.ramp--transcript_nav {
max-height: 72vh;
max-height: 50rem;
display: flex;
flex-direction: column;
padding: 0;
Expand Down

0 comments on commit d4a9eed

Please sign in to comment.