I can format columns

This commit is contained in:
2026-02-06 22:46:59 +01:00
parent 0620cb678b
commit db1e94f930
8 changed files with 141 additions and 31 deletions

View File

@@ -1,3 +1,4 @@
import logging
from dataclasses import dataclass
from typing import Literal, Optional
@@ -12,6 +13,7 @@ from myfasthtml.core.instances import MultipleInstance
from myfasthtml.icons.fluent_p1 import more_horizontal20_regular
from myfasthtml.icons.fluent_p2 import subtract20_regular
logger = logging.getLogger("Panel")
class PanelIds:
def __init__(self, owner):
@@ -116,6 +118,7 @@ class Panel(MultipleInstance):
return self._ids
def update_side_width(self, side, width):
logger.debug(f"update_side_width {side=} {width=}")
if side == "left":
self._state.left_width = width
else: