fix(space-ui): /space 포커스 앵커 잘림과 스크롤 문제 수정
This commit is contained in:
@@ -2,13 +2,25 @@ import { SpaceTimerHudWidget } from '@/widgets/space-timer-hud';
|
||||
|
||||
interface SpaceFocusHudWidgetProps {
|
||||
goal: string;
|
||||
timerLabel: string;
|
||||
visible: boolean;
|
||||
}
|
||||
|
||||
export const SpaceFocusHudWidget = ({ goal, visible }: SpaceFocusHudWidgetProps) => {
|
||||
export const SpaceFocusHudWidget = ({
|
||||
goal,
|
||||
timerLabel,
|
||||
visible,
|
||||
}: SpaceFocusHudWidgetProps) => {
|
||||
if (!visible) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <SpaceTimerHudWidget timerLabel="25/5" goal={goal} isImmersionMode className="pr-[4.2rem]" />;
|
||||
return (
|
||||
<SpaceTimerHudWidget
|
||||
timerLabel={timerLabel}
|
||||
goal={goal}
|
||||
isImmersionMode
|
||||
className="pr-[4.2rem]"
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user