Skip to content

Fix various trivial frontend problems #34263

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

Merged
merged 6 commits into from
Apr 24, 2025

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Apr 23, 2025

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 23, 2025
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/frontend labels Apr 23, 2025
@wxiaoguang wxiaoguang force-pushed the fix-frontend-trivials branch from d61a041 to 7454bb0 Compare April 23, 2025 01:13
@wxiaoguang wxiaoguang added this to the 1.24.0 milestone Apr 23, 2025
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 23, 2025
@wxiaoguang
Copy link
Contributor Author

wxiaoguang commented Apr 23, 2025

And fix missing "not-mobile":

image

@@ -2,7 +2,8 @@
/* fonts */
--fonts-proportional: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial;
--fonts-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace, var(--fonts-emoji);
--fonts-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla";
/* "Twemoji Mozilla" emoji font is widely used by browsers like Firefox, Pale Moon, and it is more likely up-to-dated than the system emoji font */
--fonts-emoji: "Twemoji Mozilla", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
Copy link
Member

@silverwind silverwind Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #34246 (comment). Maybe we should set --fonts-emoji to a empty value, letting the browser choose the right font? Empty so that customization still works with the variable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or better yet, just remove --fonts-emoji altogether. Users can still alter the other vars if they want to override emoji fonts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe like this: 0b04bfb. then the var is still kept and won't cause too many changes and the var could still be customized.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose a dummy won't hurt but I see no real reason to retain the variable either.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 2 reasons in my mind:

  1. There are not only one references to --fonts-emoji, I don't want to introduce too many changes or do more tests.
  2. Keeping the dummy name makes it easier to revert in the future (if anything wrong). We can fully remove the dummy name in future releases if it has been widely tested and there wouldn't be any problem.

@delvh delvh changed the title Fix various frontend trivial problems Fix various trivial frontend problems Apr 23, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 23, 2025
Co-authored-by: silverwind <me@silverwind.io>
@wxiaoguang wxiaoguang enabled auto-merge (squash) April 23, 2025 23:25
@wxiaoguang wxiaoguang disabled auto-merge April 23, 2025 23:28
@wxiaoguang wxiaoguang merged commit e625250 into go-gitea:main Apr 24, 2025
26 checks passed
@wxiaoguang wxiaoguang deleted the fix-frontend-trivials branch April 24, 2025 01:11
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 24, 2025
* giteaofficial/main:
  Fix panic when comment is nil (go-gitea#34257)
  Fix various trivial frontend problems (go-gitea#34263)
  update go&js dependencies (go-gitea#34262)
  Fix runner list tmpl (go-gitea#34270)
  Improve "not found" error messages for API (go-gitea#34267)
  Add fullscreen mode as a more efficient operation way to view projects (go-gitea#34081)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files
Projects
None yet
5 participants