Skip to content

Commit d48bc23

Browse files
authored
Feature/all columns (#32)
* Add most of YQuote feilds as columns in Doubloon * Column full names are now used in chooser.
1 parent 2e39470 commit d48bc23

File tree

5 files changed

+371
-20
lines changed

5 files changed

+371
-20
lines changed

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"gucs",
6464
"httpx",
6565
"longname",
66+
"nowrap",
6667
"pydantic",
6768
"pylintrc",
6869
"pyright",

src/appui/column_chooser_screen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(
7676
for frozen_key in self._frozen_keys:
7777
frozen_column = self._registry[frozen_key]
7878
frozen_label = Label(
79-
frozen_column.label,
79+
frozen_column.full_name,
8080
classes="frozen-column-label",
8181
)
8282
frozen_label.tooltip = frozen_column.full_name
@@ -207,7 +207,7 @@ def action_move_active_down(self) -> None:
207207

208208
self._move_active_item(1)
209209

210-
@on(Click, "ListView ListItem")
210+
@on(Click, "ListView ListItem Label")
211211
async def _on_list_view_clicked(self, event: Click) -> None:
212212
if event.chain == 2: # noqa: PLR2004
213213
await self.action_toggle_column()
@@ -294,7 +294,7 @@ def _build_list_item(self, column_key: str) -> ListItem:
294294
The list item widget.
295295
"""
296296
column = self._registry[column_key]
297-
label = Label(column.label)
297+
label = Label(column.full_name)
298298
label.tooltip = column.full_name
299299
return ListItem(label, id=column_key)
300300

src/appui/doubloon_app.tcss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,19 @@ ColumnChooserScreen ListItem {
110110
color: rgb(160, 160, 160);
111111
}
112112

113+
ColumnChooserScreen ListItem Label {
114+
text-wrap: nowrap;
115+
text-overflow: ellipsis;
116+
width: 100%;
117+
}
118+
113119
# Frozen headers above Active Columns list
114120
ColumnChooserScreen .frozen-column-label {
115121
width: 100%;
116122
color: rgb(110, 110, 110);
117123
background: rgb(35, 35, 35);
124+
text-wrap: nowrap;
125+
text-overflow: ellipsis;
118126
}
119127

120128
# When Active List has focus, brighten the frozen labels

0 commit comments

Comments
 (0)