-
-
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
Fix ::User Profile Page - Project/Packages Tabs Have Inconsistent Layout and Style #25029
Fix ::User Profile Page - Project/Packages Tabs Have Inconsistent Layout and Style #25029
Conversation
ctx.Data["NumFollowing"] = numFollowing | ||
ctx.Data["ShowUserEmail"] = setting.UI.ShowUserEmail && ctx.ContextUser.Email != "" && ctx.IsSigned && !ctx.ContextUser.KeepEmailPrivate | ||
ctx.Data["EnableFeed"] = setting.Other.EnableFeed | ||
|
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.
Where is this code block from and can we maybe re-use a function between the two?
@@ -1917,6 +1921,11 @@ | |||
padding-bottom: 100px; | |||
} | |||
|
|||
.page-content .ui.ui.ui.container:not(.fluid) .empty { |
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.
.empty
seems an awefully generic class name. Can you be more specific, and is this prefix really needed?
So this PR introduces 3 big template files, without removing the content anywhere else, so I assume this must by copy-pasted content, which we should avoid as it hurts maintainability having to do a change in many copy-pasted files (and often forgetting some places). Instead of copying, is it possible to move only the reusable parts into Same duplication issue may apply to the go code as well, I'm not sure. +490 −12 is certainly not a good-looking diffstat for such a refactor. |
Yes you are correct. I took the basic approach to fix this. But I like you suggestion on reusability. I will work on the reformatting and reducing the duplicate code. |
Moved to #25108 |
Fix ::User Profile Page Project Tab Have Inconsistent Layout and Style
Added the big_avator for consistency in the all header_items tabs.
#24871
Before
After changes
Project View
Packages View
Org view for projects page
Org view for packages page