readmes should work now i think

This commit is contained in:
2026-02-05 18:09:02 +11:00
parent 6c74073b11
commit bb3b235a30
4 changed files with 57 additions and 12 deletions

View File

@@ -58,7 +58,7 @@ class SearchScreen(Screen):
width: 1fr;
}
#search-select {
Select {
width: 25;
}
}
@@ -100,6 +100,7 @@ class SearchScreen(Screen):
# self explanitory
query_input.clear()
query_input.focus()
def on_input_submitted(self, event: Input.Submitted):
if event.input.id == "query":
@@ -114,9 +115,21 @@ class SearchScreen(Screen):
with HorizontalGroup(id="search-box"):
yield Input(placeholder="Search repos...", id="query")
yield Select.from_values([
"Alphabetical",
"Creation date",
"Last updated",
"Size",
"ID"
], id="sort-select", allow_blank=False, value="Last updated")
yield Select.from_values([
"Ascending",
"Descending"
], id="order-select", allow_blank=False, value="Ascending")
yield Select.from_values([
"Repositories",
], id="search-select", allow_blank=False)
"Users",
], id="search-select", allow_blank=False, value="Repositories")
with ScrollableContainer(id="results"):
yield LoadingIndicator()