fix: Scrollbars on the thumbnails to be auto visible (#2605)

The thumbnail view had hte scrollbars not visible and they didn't
appear, and that made it hard to discover how to scroll.
This commit is contained in:
Bill Wallace 2022-01-14 15:23:13 -05:00 committed by GitHub
parent 987eceb40a
commit c6a9571915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,11 @@
/* CUSTOM OHIF SCROLLBAR */ /* CUSTOM OHIF SCROLLBAR */
.ohif-scrollbar { .ohif-scrollbar {
scrollbar-color: #3E5967 transparent; scrollbar-color: #3E5967 transparent;
scrollbar-gutter: stable;
}
.ohif-scrollbar:hover {
overflow-y: auto;
} }
.ohif-scrollbar::-webkit-scrollbar { .ohif-scrollbar::-webkit-scrollbar {

View File

@ -15,7 +15,7 @@ const MeasurementTable = ({ data, title, amount, onClick, onEdit }) => {
</span> </span>
<span className="text-base font-bold text-white">{amount}</span> <span className="text-base font-bold text-white">{amount}</span>
</div> </div>
<div className="overflow-x-hidden overflow-y-auto ohif-scrollbar max-h-112"> <div className="overflow-hidden ohif-scrollbar max-h-112">
{data.length !== 0 && {data.length !== 0 &&
data.map((measurementItem, index) => ( data.map((measurementItem, index) => (
<MeasurementItem <MeasurementItem

View File

@ -105,7 +105,7 @@ const StudyBrowser = ({
})} })}
</ButtonGroup> </ButtonGroup>
</div> </div>
<div className="flex flex-col flex-1 overflow-auto invisible-scrollbar"> <div className="flex flex-col flex-1 overflow-auto">
{getTabContent()} {getTabContent()}
</div> </div>
</React.Fragment> </React.Fragment>

View File

@ -11,7 +11,7 @@ const ThumbnailList = ({
onClickUntrack, onClickUntrack,
}) => { }) => {
return ( return (
<div className="py-3 bg-black"> <div className="py-3 bg-black overflow-y-hidden ohif-scrollbar">
{thumbnails.map( {thumbnails.map(
({ ({
displaySetInstanceUID, displaySetInstanceUID,