-
-
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
Keep (add if not existing) xmlns attribute for generated SVG images #23410
Conversation
How about adding xmlns only when Generally I see this change as borderline useless, we never render SVG in standalone documents. |
The purpose is to make developers could browse local SVG images from the assets directory. |
@silverwind @KN4CK3R I don't understand what does it mean, and I do not think it's related to the problem. The purpose of this PR is to make the SVG images in At the moment, when I am working with SVG images in Gitea, I even can't know what a image looks like, it's difficult to manage/confirm these SVG files, and it's difficult to pick/choose a SVG image. You can open your local |
@silverwind @KN4CK3R how do you think? This PR:
|
My image viewer is able to display the files without that change. But as this work is done only once in an |
I guess it does not hurt if it only affects the files when viewed directly in the browser, which BTW is just a side-effect, we do not use these file URLs anywhere. Their existance at that location it currently only so that the go template code can access them via bindata embed. Thought I guess if we ever decide to make use of these files via URL, it is the right change to do because standalone documents indeed need the |
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.
LGTM.
However, I'm not sure if we should merge #23528 or this PR first, there will always be merge conflicts.
I'd rather say the other one as the chance that we forget to add the namespace for the new icons is lower then.
Would merge the other one first and then run |
This change does not actually add |
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.
Blocking as per above. The code does not do what the PR title says.
Done in 9412e17 |
No worry, I am glad and happy to resolve necessary conflicts. |
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #23410 +/- ##
==========================================
- Coverage 47.14% 47.13% -0.01%
==========================================
Files 1149 1154 +5
Lines 151446 152270 +824
==========================================
+ Hits 71397 71780 +383
- Misses 71611 72016 +405
- Partials 8438 8474 +36
... and 31 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
* upstream/main: Use a general approch to improve a11y for all checkboxes and dropdowns. (go-gitea#23542) [skip ci] Updated translations via Crowdin Update PR documentation (go-gitea#23620) Set opaque background on markup and images (go-gitea#23578) Decouple the issue-template code from comment_tab.tmpl (go-gitea#23556) Remove `id="comment-form"` dead code, fix tag (go-gitea#23555) Introduce path Clean/Join helper functions (go-gitea#23495) Remove conflicting CSS rules on notifications, improve notifications table (go-gitea#23565) Remove @metalmatze as maintainer (go-gitea#23612) Keep (add if not existing) xmlns attribute for generated SVG images (go-gitea#23410)
Fix #23409
Developers could browse & preview the local SVG images files directly.
It still has clear output.