-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub like repo home page #32213
GitHub like repo home page #32213
Conversation
Consider expanding the screen width for a better viewing experience. |
Need more works for mobile view. desktop view is almost finished. |
In mobile view, I want to move search code and descriptions to the top of the page. |
This comment was marked as resolved.
This comment was marked as resolved.
Have done my best to fix various problems (by the way, move some code to refactor the legacy functions) |
@yp05327 could you take a look at whether my changes are right? If nothing wrong, we can merge it and keep improving in following PRs. |
Tooltips looks not good (especially for license, it is designed for the original UI), changed into |
LGTM @hiifong |
The layout is still broken, This time I am using a Mac system. |
@wxiaoguang Can you fix this? |
And the spacing between the items is too tight |
The white space LGTM, but maybe you are using high DPI display, so the result is different to us. |
Fixed in 6412de6 |
LGTM |
This is by design. Same to GitHub. |
Then we could add a "sync fork" button like GitHub: -> Support "merge upstream branch" (Sync fork) #32741 |
@@ -1,4 +1,4 @@ | |||
<table id="repo-files-table" class="ui single line table tw-mt-0" {{if .HasFilesWithoutLatestCommit}}hx-indicator="tr.notready td.message span" hx-trigger="load" hx-swap="morph" hx-post="{{.LastCommitLoaderURL}}"{{end}}> | |||
<table id="repo-files-table" class="ui single line fixed table tw-mt-0" {{if .HasFilesWithoutLatestCommit}}hx-indicator="tr.notready td.message span" hx-trigger="load" hx-swap="morph" hx-post="{{.LastCommitLoaderURL}}"{{end}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixed
causes long commit messages to cut off too soon and the timestamp column to get too wide. I recommand against it. But without it, they table overflows on certain viewports. It needs more investigation. Ideally we should rewrite the table in flex layout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#32759 will fix that and revert the table layout.
@@ -2172,11 +2154,7 @@ td .commit-summary { | |||
justify-content: flex-end; | |||
} | |||
|
|||
.repo-button-row[data-is-homepage="false"] .repo-button-row-right { | |||
flex-grow: 0; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule removal caused regression #32753.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> Fix repo home row-right grow #32763
* giteaofficial/main: [skip ci] Updated licenses and gitignores Fix repo home row-right grow (go-gitea#32763) Refactor issue list (go-gitea#32755) Fix compare page bug view as anonymous (go-gitea#32754) Split issue/pull view router function as multiple smaller functions (go-gitea#32749) fix: render job title as commit message (go-gitea#32748) Fix typescript errors in Vue files, fix regression in "Recent Commits" chart (go-gitea#32649) Refactor LabelEdit (go-gitea#32752) [skip ci] Updated translations via Crowdin fix(project): add title to project view page (go-gitea#32747) [skip ci] Updated translations via Crowdin Fix case of .tsbuildinfo in .gitignore (go-gitea#32737) Support "merge upstream branch" (Sync fork) (go-gitea#32741) Update changelog to add missed changelog (go-gitea#32734) GitHub like repo home page (go-gitea#32213) Refactor markdown render (go-gitea#32736) Make wiki pages visit fast (go-gitea#32732) Refactor markdown render (go-gitea#32728) Refactor RepoActionView.vue, add `::group::` support (go-gitea#32713)
Replace #27931
Laptop View:
Mobile View:
Small Laptop view:
TODO: (in other PRs, we can improve it one by one)
why: the original PR of the implement of contributors does not contain a usable function to fetch the top contributors