Skip to content

Commit

Permalink
fix: interpretations modal height (DHIS2-15558)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott authored and HendrikThePendric committed Oct 16, 2023
1 parent f27bc38 commit 014d43e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,22 @@ const modalCSS = css.resolve`
max-width: calc(100vw - 128px) !important;
max-height: calc(100vh - 128px) !important;
width: auto !important;
height: auto !important;
height: calc(100vw - 128px) !important;
overflow-y: hidden;
}
aside.hidden {
display: none;
}
aside > :global(div) > :global(div) {
max-height: none;
height: 100%;
}
`

function getModalContentCSS(width) {
return css.resolve`
div {
width: ${width}px;
overflow-y: visible;
}
`
}
Expand Down Expand Up @@ -216,12 +217,14 @@ const InterpretationModal = ({
.container {
display: flex;
flex-direction: column;
height: 100%;
}
.row {
display: flex;
flex-direction: row;
gap: 16px;
height: 100%;
}
.visualisation-wrap {
Expand All @@ -233,7 +236,6 @@ const InterpretationModal = ({
padding-right: ${spacers.dp4};
flex-basis: 300px;
flex-shrink: 0;
overflow-y: auto;
}
`}</style>
</Modal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,17 @@ const InterpretationThread = ({
)}
</div>
</div>
<CommentAddForm
currentUser={currentUser}
interpretationId={interpretation.id}
onSave={() => onThreadUpdated(true)}
focusRef={focusRef}
/>
<style jsx>{`
.thread {
margin-top: var(--spacers-dp16);
overflow-y: auto;
scroll-behavior: smooth;
}
.container {
Expand Down Expand Up @@ -117,11 +125,6 @@ const InterpretationThread = ({
rotation;
}
.scrollbox {
overflow-y: auto;
scroll-behavior: smooth;
}
.title {
display: flex;
align-items: center;
Expand Down

0 comments on commit 014d43e

Please sign in to comment.