Skip to content

Commit a08867a

Browse files
committed
fixes icon
1 parent fd4e1e3 commit a08867a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ngwidgets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.22.0"
1+
__version__ = "0.22.1"

ngwidgets/lod_grid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class GridConfig:
3939
auto_size_columns: bool = True
4040
# buttons
4141
with_buttons: bool = False
42-
button_names: List[str] = field(default_factory=lambda: ["new", "delete", "all"])
42+
button_names: List[str] = field(default_factory=lambda: ["new", "delete", "all", "fit"])
4343
prepend_new: bool = True
4444
html_columns: List[int] = field(default_factory=list)
4545
keygen_callback: Optional[Callable] = None
@@ -477,7 +477,7 @@ def setup_button_row(self, button_names: list):
477477
)
478478
if "fit" in button_names:
479479
self.fit_button = ui.button(
480-
"Fit", icon="arrow_range", on_click=self.onSizeColumnsToFit
480+
"Fit", icon="fit_screen", on_click=self.onSizeColumnsToFit
481481
)
482482
if "all" in button_names:
483483
self.select_toggle_button = ui.button(

ngwidgets/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Version:
1717
name = "ngwidgets"
1818
version = ngwidgets.__version__
1919
date = "2023-09-10"
20-
updated = "2025-02-19"
20+
updated = "2025-02-24"
2121
description = "NiceGUI widgets"
2222

2323
authors = "Wolfgang Fahl"

0 commit comments

Comments
 (0)