mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Fix vertical height
This commit is contained in:
@@ -136,8 +136,8 @@ export function EventViewer<T>({
|
|||||||
name={splitLayoutName}
|
name={splitLayoutName}
|
||||||
defaultRatio={defaultRatio}
|
defaultRatio={defaultRatio}
|
||||||
minHeightPx={10}
|
minHeightPx={10}
|
||||||
firstSlot={() => (
|
firstSlot={({ style }) => (
|
||||||
<>
|
<div style={style} className="w-full grid grid-rows-[auto_minmax(0,1fr)]">
|
||||||
{header}
|
{header}
|
||||||
<AutoScroller
|
<AutoScroller
|
||||||
data={events}
|
data={events}
|
||||||
@@ -161,12 +161,12 @@ export function EventViewer<T>({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</>
|
</div>
|
||||||
)}
|
)}
|
||||||
secondSlot={
|
secondSlot={
|
||||||
activeEvent != null && renderDetail
|
activeEvent != null && renderDetail
|
||||||
? () => (
|
? ({ style }) => (
|
||||||
<div className="grid grid-rows-[auto_minmax(0,1fr)]">
|
<div style={style} className="grid grid-rows-[auto_minmax(0,1fr)]">
|
||||||
<div className="pb-3 px-2">
|
<div className="pb-3 px-2">
|
||||||
<Separator />
|
<Separator />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user