readmes should work now i think
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user