added requirements.txt and fixed tiny tiny ui bug

This commit is contained in:
2026-02-05 19:08:38 +11:00
parent bf62188876
commit 48536c3b19
3 changed files with 5 additions and 1 deletions

4
requirements.txt Normal file
View File

@@ -0,0 +1,4 @@
textual
human_readable
textualeffects
requests

View File

@@ -163,7 +163,7 @@ class RepoViewScreen(Screen):
if file["name"].lower() == "readme.md": if file["name"].lower() == "readme.md":
found_readme = True found_readme = True
readme.border_title = file["name"] readme.border_title = f"\uf405 {file["name"]}"
readme_content = requests.get( readme_content = requests.get(
self.app.GITEA_HOST + f"api/v1/repos/{self.owner_name}/{self.repo_name}/raw/{file["name"]}" self.app.GITEA_HOST + f"api/v1/repos/{self.owner_name}/{self.repo_name}/raw/{file["name"]}"