Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(editor): fix Biome formatting for segment prop objects

Minit2320479bb070
diff --git a/apps/desktop/src/routes/editor/Timeline/CaptionsTrack.tsx b/apps/desktop/src/routes/editor/Timeline/CaptionsTrack.tsx
index 9743f6217..33a746f43 100644
--- a/apps/desktop/src/routes/editor/Timeline/CaptionsTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/CaptionsTrack.tsx
@@ -173,7 +173,10 @@ export function CaptionsTrack(props: {
isSelected() ? "border-green-7" : "border-transparent",
)}
innerClass="ring-green-6"
- segment={{ start: segment.start, end: Math.min(segment.end, totalDuration()) }}
+ segment={{
+ start: segment.start,
+ end: Math.min(segment.end, totalDuration()),
+ }}
onMouseDown={(e) => {
e.stopPropagation();
if (editorState.timeline.interactMode === "split") {
diff --git a/apps/desktop/src/routes/editor/Timeline/KeyboardTrack.tsx b/apps/desktop/src/routes/editor/Timeline/KeyboardTrack.tsx
index 3b1d44c5f..07a0a57d6 100644
--- a/apps/desktop/src/routes/editor/Timeline/KeyboardTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/KeyboardTrack.tsx
@@ -165,7 +165,10 @@ export function KeyboardTrack(props: {
isSelected() ? "border-sky-7" : "border-transparent",
)}
innerClass="ring-sky-6"
- segment={{ start: segment.start, end: Math.min(segment.end, totalDuration()) }}
+ segment={{
+ start: segment.start,
+ end: Math.min(segment.end, totalDuration()),
+ }}
onMouseDown={(e) => {
e.stopPropagation();
if (editorState.timeline.interactMode === "split") {