Skip to content

Commit

Permalink
Merge pull request #197 from epam/EPMUII-9032-Vertical-align-meta-dat…
Browse files Browse the repository at this point in the history
…a-popup

[EPMUII-9032]. Vertical align meta data popup
  • Loading branch information
oleksandr-zhynzher authored Jan 24, 2024
2 parents 0a4f060 + 763d1ae commit 96861ae
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ui/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,4 @@ button:hover,

.button_select_file svg {
margin-right: 10px;
}
}
4 changes: 2 additions & 2 deletions src/ui/Modals/ModalInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ const ModalInfo = (props) => {
return getVolInfo(volumeSet, volume);
}, [volumeSet, volumeIndex]);

const slicesInfo = dicomInfo.m_sliceInfo || [];
const tagsList = slicesInfo[currentSlice].m_tags || [];
const slicesInfo = dicomInfo?.m_sliceInfo || [];
const tagsList = slicesInfo[currentSlice]?.m_tags || [];

return (
<Modal isOpen={stateVis} close={onHide}>
Expand Down
17 changes: 17 additions & 0 deletions src/ui/Modals/ModalInfo.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
width: 100%;
border-collapse: collapse;
border: 1px solid var(--light);
display: block;
overflow-y: scroll;
height: 50vh;
}

.thead {
Expand All @@ -106,4 +109,18 @@
font-size: 14px;
border: 1px dashed var(--light);
word-break: break-word;
width: 172px;
}

::-webkit-scrollbar
{
width: 10px;
background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb
{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: #dc5e47;
}
3 changes: 1 addition & 2 deletions src/ui/Modals/Modals.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
z-index: 1004;
position: absolute;
width: 93%;
top: 15vh;
top: 9vh;
left: 49%;
margin: 0 5px;
transform: translateX(-50%);
Expand Down Expand Up @@ -187,7 +187,6 @@
@media screen and (min-width: 768px) {
.modal {
width: 600px;
top: calc(50vh - 180px);
}

.cards {
Expand Down

0 comments on commit 96861ae

Please sign in to comment.