Skip to content

Commit

Permalink
Refactor video controls styling and layout
Browse files Browse the repository at this point in the history
  • Loading branch information
iDome89 committed Nov 19, 2024
1 parent 99ac3de commit 792550d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stories/player/parts/controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { PlayerTooltip } from "./tooltip";
import { formatDuration } from "../utils";
import useDebounce from "../../../hooks/useDebounce";
import { CutStart } from "./CutStart";
import { theme } from "../../theme";

export const ControlsWrapper = styled.div<WrapperProps>`
${({ showControls }) =>
Expand Down Expand Up @@ -49,6 +48,7 @@ export const ControlsBar = styled.div`
const StyledDiv = styled.div`
display: flex;
align-items: center;
gap: ${({ theme }) => theme.space.xxs};
`;

const CurrentTimeMarker = styled.div<{
Expand Down Expand Up @@ -237,14 +237,14 @@ export const Controls = ({

<ControlsBar>
<StyledDiv
style={{ width: "20%", justifyContent: "start", gap: theme.space.sm }}
style={{ width: "20%", justifyContent: "start"}}
>
<AudioButton />
<TimeLabel current={relCurrentTime} duration={duration} />
</StyledDiv>
<ControlsGroupCenter style={{ width: "60%" }} />

<StyledDiv style={{ width: "20%", justifyContent: "end", gap: theme.space.sm }}>
<StyledDiv style={{ width: "20%", justifyContent: "end" }}>
<Cutter
onCutHandler={onCutHandler}
isCutting={isCutting}
Expand Down

0 comments on commit 792550d

Please sign in to comment.