fix(ui): Scrolling and display fixes for study panel (#4494)

This commit is contained in:
Dan Rukas 2024-11-12 17:21:05 -05:00 committed by GitHub
parent 2f7bb02387
commit 4f8281b04a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 18 deletions

View File

@ -71,24 +71,22 @@ const StudyBrowser = ({
return (
<div
className="ohif-scrollbar invisible-scrollbar bg-bkg-low flex flex-1 flex-col gap-[4px] overflow-auto"
className="ohif-scrollbar invisible-scrollbar bg-bkg-low flex flex-1 flex-col gap-[4px] overflow-auto pt-px"
data-cy={'studyBrowser-panel'}
>
<div>
{showSettings && (
<div className="w-100 bg-bkg-low flex h-[48px] items-center justify-center gap-[10px] px-[8px] py-[10px]">
<>
<StudyBrowserViewOptions
tabs={tabs}
onSelectTab={onClickTab}
activeTabName={activeTabName}
/>
<StudyBrowserSort servicesManager={servicesManager} />
</>
</div>
)}
{getTabContent()}
</div>
{showSettings && (
<div className="w-100 bg-bkg-low flex h-[48px] items-center justify-center gap-[10px] px-[8px] py-[10px]">
<>
<StudyBrowserViewOptions
tabs={tabs}
onSelectTab={onClickTab}
activeTabName={activeTabName}
/>
<StudyBrowserSort servicesManager={servicesManager} />
</>
</div>
)}
{getTabContent()}
</div>
);
};

View File

@ -27,6 +27,7 @@ const StudyItem = ({
collapsible
onClick={onClick}
onKeyDown={() => {}}
className="flex-shrink-0"
role="button"
tabIndex={0}
defaultValue={isActive ? 'study-item' : undefined}

View File

@ -70,7 +70,7 @@ const Thumbnail = ({
<div
className={classnames(
'flex h-full w-full flex-col items-center justify-center gap-[2px] p-[4px]',
isActive && 'bg-popover'
isActive && 'bg-popover rounded'
)}
>
<div className="h-[114px] w-[128px]">
@ -202,7 +202,7 @@ const Thumbnail = ({
<div
className={classnames(
'flex h-full w-full items-center justify-between pr-[8px] pl-[8px] pt-[4px] pb-[4px]',
isActive && 'bg-popover'
isActive && 'bg-popover rounded'
)}
>
<div className="relative flex h-[32px] items-center gap-[8px]">