Skip to content

Commit b491e78

Browse files
sync the board state
Signed-off-by: Jonathan Irvin <djfoxyslpr@gmail.com>
1 parent 65e674a commit b491e78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def create_board_view(background_color: str, is_global: bool):
359359
local_tile_buttons = {}
360360
build_board(container, local_tile_buttons, toggle_tile)
361361
board_views["stream"] = (container, local_tile_buttons)
362-
ui.timer(0.1, lambda: update_tile_styles(local_tile_buttons))
362+
ui.timer(0.1, sync_board_state)
363363

364364
@ui.page("/")
365365
def home_page():
@@ -379,8 +379,8 @@ def setup_head(background_color: str):
379379
font-family: 'Super Carnival';
380380
font-style: normal;
381381
font-weight: 400;
382-
/* Load the local .woff file from the static folder */
383-
src: url('/static/Super Carnival.woff') format('woff');
382+
/* Load the local .woff file from the static folder (URL-encoded for Safari) */
383+
src: url('/static/Super%20Carnival.woff') format('woff');
384384
}
385385
386386
""")
@@ -453,7 +453,7 @@ def get_google_font_css(font_name: str, weight: str, style: str, uniquifier: str
453453
return f"""
454454
<style>
455455
.{uniquifier} {{
456-
font-family: "{font_name}", serif;
456+
font-family: "{font_name}", sans-serif;
457457
font-optical-sizing: auto;
458458
font-weight: {weight};
459459
font-style: {style};

0 commit comments

Comments
 (0)