Skip to content

Commit

Permalink
fix clock (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alek99 authored Jan 23, 2025
1 parent f091951 commit 6d7d914
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions clock/clock/clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import Any

import reflex as rx
import reflex_chakra as rc
from reflex.components.radix.themes import theme

import pytz
Expand Down Expand Up @@ -140,13 +139,14 @@ def clock_hand(rotation: str, color: str, length: str) -> rx.Component:

def analog_clock() -> rx.Component:
"""Create the analog clock."""
return rc.circle(
return rx.center(
# The inner circle.
rc.circle(
rx.center(
width="1em",
height="1em",
border_width="thick",
border_color="#43464B",
border_radius="1000px",
z_index=1,
),
# The clock hands.
Expand All @@ -159,6 +159,7 @@ def analog_clock() -> rx.Component:
height="25em",
bg="rgb(250,250,250)",
box_shadow="dark-lg",
border_radius="1000px",
)


Expand Down
3 changes: 1 addition & 2 deletions clock/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
reflex>=0.5.6
pytz==2022.7.1
reflex-chakra>=0.6.0a7
pytz==2022.7.1

0 comments on commit 6d7d914

Please sign in to comment.