Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"gucs",
"httpx",
"longname",
"nowrap",
"pydantic",
"pylintrc",
"pyright",
Expand Down
6 changes: 3 additions & 3 deletions src/appui/column_chooser_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(
for frozen_key in self._frozen_keys:
frozen_column = self._registry[frozen_key]
frozen_label = Label(
frozen_column.label,
frozen_column.full_name,
classes="frozen-column-label",
)
frozen_label.tooltip = frozen_column.full_name
Expand Down Expand Up @@ -207,7 +207,7 @@ def action_move_active_down(self) -> None:

self._move_active_item(1)

@on(Click, "ListView ListItem")
@on(Click, "ListView ListItem Label")
async def _on_list_view_clicked(self, event: Click) -> None:
if event.chain == 2: # noqa: PLR2004
await self.action_toggle_column()
Expand Down Expand Up @@ -294,7 +294,7 @@ def _build_list_item(self, column_key: str) -> ListItem:
The list item widget.
"""
column = self._registry[column_key]
label = Label(column.label)
label = Label(column.full_name)
label.tooltip = column.full_name
return ListItem(label, id=column_key)

Expand Down
8 changes: 8 additions & 0 deletions src/appui/doubloon_app.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,19 @@ ColumnChooserScreen ListItem {
color: rgb(160, 160, 160);
}

ColumnChooserScreen ListItem Label {
text-wrap: nowrap;
text-overflow: ellipsis;
width: 100%;
}

# Frozen headers above Active Columns list
ColumnChooserScreen .frozen-column-label {
width: 100%;
color: rgb(110, 110, 110);
background: rgb(35, 35, 35);
text-wrap: nowrap;
text-overflow: ellipsis;
}

# When Active List has focus, brighten the frozen labels
Expand Down
Loading
Loading