Skip to content

Commit 427768e

Browse files
committed
fix(view): use ellipsis on title
1 parent ba85976 commit 427768e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/e3sm_quickview/view_manager.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,14 @@ def _build_ui(self):
227227
):
228228
with v3.VRow(
229229
dense=True,
230-
classes="ma-0 pa-0 bg-black opacity-90 d-flex align-center",
230+
classes="ma-0 pa-0 bg-black opacity-90 d-flex align-center flex-nowrap",
231231
):
232232
tview.create_size_menu(self.name, self.config)
233233
with html.Div(
234234
self.variable_name,
235-
classes="text-subtitle-2 pr-2",
235+
classes="text-subtitle-2 pr-2 text-truncate",
236236
style="user-select: none;",
237+
title=self.variable_name,
237238
):
238239
with v3.VMenu(activator="parent"):
239240
with v3.VList(density="compact", style="max-height: 40vh;"):
@@ -258,27 +259,27 @@ def _build_ui(self):
258259
v3.VSpacer()
259260
html.Div(
260261
"t = {{ time_idx }}",
261-
classes="text-caption px-1",
262+
classes="text-caption px-1 text-no-wrap",
262263
v_if="timestamps.length > 1",
263264
)
264265
if self.variable_type == "m":
265266
html.Div(
266267
"[k = {{ midpoint_idx }}]",
267-
classes="text-caption px-1",
268+
classes="text-caption px-1 text-no-wrap",
268269
v_if="midpoints.length > 1",
269270
)
270271
if self.variable_type == "i":
271272
html.Div(
272273
"[k = {{ interface_idx }}]",
273-
classes="text-caption px-1",
274+
classes="text-caption px-1 text-no-wrap",
274275
v_if="interfaces.length > 1",
275276
)
276277
v3.VSpacer()
277278
html.Div(
278279
"avg = {{"
279280
f"fields_avgs['{self.variable_name}']?.toExponential(2) || 'N/A'"
280281
"}}",
281-
classes="text-caption px-1",
282+
classes="text-caption px-1 text-no-wrap",
282283
)
283284

284285
with html.Div(

0 commit comments

Comments
 (0)