Refactor and improve layout resizing

This commit is contained in:
Gregory Schier
2023-03-25 21:16:10 -07:00
parent 391a436ed3
commit ae4a43f406
14 changed files with 294 additions and 289 deletions

View File

@@ -125,9 +125,9 @@ export const PairEditor = memo(function PairEditor({
className={classnames(
className,
'@container',
'pb-2 grid',
// NOTE: Add padding to top so overflow doesn't hide drop marker
'pt-1 -my-1',
'overflow-auto max-h-full pb-2 grid',
// Move over the width of the drag handle
'-ml-3',
)}
>
{pairs.map((p, i) => {

View File

@@ -127,7 +127,7 @@ export const TabContent = memo(function TabContent({
<div
tabIndex={-1}
data-tab={value}
className={classnames(className, 'tab-content', 'w-full h-full overflow-auto')}
className={classnames(className, 'tab-content', 'w-full h-full')}
>
{children}
</div>