Skip to content

Commit 25dd5b7

Browse files
committed
fix: replace raw_attrs tooltips with v_tooltip_bottom and fix VNumberInput min/max syntax
1 parent 323acd9 commit 25dd5b7

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/e3sm_quickview/components/toolbars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ def __init__(self):
402402
"[track, Number($event)]",
403403
),
404404
key=("track + '_' + t_idx",),
405-
min=0,
406-
max=("t_values ? t_values.length - 1 : 0",),
405+
min=[0],
406+
max=[("t_values ? t_values.length - 1 : 0")],
407407
step=[1],
408408
hide_details=True,
409409
density="comfortable",

src/e3sm_quickview/components/view.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ def create_bottom_bar(config, update_color_preset):
125125
with v3.VCardItem(classes="py-0 px-2"):
126126
with html.Div(classes="d-flex align-center"):
127127
v3.VIconBtn(
128-
raw_attrs=[
129-
'''v-tooltip:bottom="config.color_blind ? 'Toggle for all color presets' : 'Toggle for colorblind safe color presets'"'''
130-
],
128+
v_tooltip_bottom=(
129+
"config.color_blind ? 'Toggle for all color presets' : 'Toggle for colorblind safe color presets'",
130+
),
131131
icon=(
132132
"config.color_blind ? 'mdi-shield-check-outline' : 'mdi-palette'",
133133
),
@@ -139,9 +139,9 @@ def create_bottom_bar(config, update_color_preset):
139139
variant="text",
140140
)
141141
v3.VIconBtn(
142-
raw_attrs=[
143-
'''v-tooltip:bottom="config.invert ? 'Toggle to normal preset' : 'Toggle to inverted preset'"'''
144-
],
142+
v_tooltip_bottom=(
143+
"config.invert ? 'Toggle to normal preset' : 'Toggle to inverted preset'",
144+
),
145145
icon=(
146146
"config.invert ? 'mdi-invert-colors' : 'mdi-invert-colors-off'",
147147
),
@@ -153,9 +153,9 @@ def create_bottom_bar(config, update_color_preset):
153153
variant="text",
154154
)
155155
v3.VIconBtn(
156-
raw_attrs=[
157-
'''v-tooltip:bottom="config.use_log_scale ? 'Toggle to linear scale' : 'Toggle to log scale'"'''
158-
],
156+
v_tooltip_bottom=(
157+
"config.use_log_scale ? 'Toggle to linear scale' : 'Toggle to log scale'"
158+
),
159159
icon=(
160160
"config.use_log_scale ? 'mdi-math-log' : 'mdi-stairs'",
161161
),
@@ -167,9 +167,9 @@ def create_bottom_bar(config, update_color_preset):
167167
variant="text",
168168
)
169169
v3.VIconBtn(
170-
raw_attrs=[
171-
'''v-tooltip:bottom="config.override_range ? 'Toggle to use data range' : 'Toggle to use custom range'"'''
172-
],
170+
v_tooltip_bottom=(
171+
"config.override_range ? 'Toggle to use data range' : 'Toggle to use custom range'",
172+
),
173173
icon=(
174174
"config.override_range ? 'mdi-arrow-expand-horizontal' : 'mdi-pencil'",
175175
),

0 commit comments

Comments
 (0)