File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
apps/desktop/src/routes/editor/Timeline Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -88,11 +88,13 @@ export function SegmentRoot(
88
88
}
89
89
90
90
export function SegmentContent ( props : ComponentProps < "div" > ) {
91
+ const ctx = useSegmentContext ( ) ;
91
92
return (
92
93
< div
93
94
{ ...props }
94
95
class = { cx (
95
- "relative w-full h-full flex flex-row items-center px-[0.5rem] py-[0.25rem]" ,
96
+ "relative w-full h-full flex flex-row items-center py-[0.25rem]" ,
97
+ ctx . width ( ) < 100 ? "px-0" : "px-[0.5rem]" ,
96
98
props . class
97
99
) }
98
100
/>
@@ -109,7 +111,7 @@ export function SegmentHandle(
109
111
< div
110
112
{ ...props }
111
113
class = { cx (
112
- "w-3 cursor-col-resize shrink-0 transition-opacity h-full flex flex-row items-center" ,
114
+ "w-3 cursor-col-resize transition-opacity h-full flex flex-row items-center" ,
113
115
props . position === "start"
114
116
? "left-0 justify-end"
115
117
: "right-0 justify-start" ,
You can’t perform that action at this time.
0 commit comments