mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-10 22:06:34 -05:00
README WordPress the code is overflowing #3211
Closed
opened 2025-11-02 05:03:57 -06:00 by GiteaMirror
·
19 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1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
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#3211
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZerooCool on GitHub (Apr 19, 2019).
Hi, i need help for a fixe.
Can you see a page with the README file from WordPress ?
As you can see, the code is overflowing.
I tested different CSS property but I can not patch this problem.
It does not work with word-break or overflow
I then tried to replace from the browser, the html PRE tag DIV and the rendering is consistent.
Can you tell me if another way of doing things is possible in CSS, if not, can you tell me or find this PRE tag in the source code of GITEA, in order to correct it? Can you take into consideration my remark, and, bring a fix for this problem?
@saitho commented on GitHub (Apr 19, 2019):
Did you try:
@ZerooCool commented on GitHub (Apr 19, 2019):
Nice ! Thank you !
A other way is : change PRE for a DIV :
The file is templates/repo/view_file.tmpl:49
Change the CSS is better. Can you add this fixe ?
Where i can add this code ?
@kolaente commented on GitHub (Apr 19, 2019):
You could add this somewhere in
public/less/_repository.lessand then send a pr.However, keep in mind HTML rendering was shut off on purpose, to prevent XSS attacks.
@ZerooCool commented on GitHub (Apr 19, 2019):
Ok I will make a proposal to update this file, with your CSS fix thank you very much.
https://github.com/go-gitea/gitea/blob/master/public/less/_repository.less
@ZerooCool commented on GitHub (Apr 19, 2019):
Some checks haven’t completed yet
1 expected and 1 pending checks
approvals/lgtm Expected — Waiting for status to be reported
Required
continuous-integration/drone/pr Pending — Build is running
Required
Details
Merging is blocked
The base branch restricts merging to authorized users. Learn more about protected branches.
ae74566dae@ZerooCool commented on GitHub (Apr 20, 2019):
kolaente say : That's changing the code-diff view, not the readme.
Ok, that's not what's wanted then.
Here is the view of the HTML code (WordPress README displayed by default on our project) that I want to change because the code overflows.
An idea of CSS to modify?
In my online tests, the following CSS I modify:
/vendor/plugins/semantic/semantic.min.css
@ZerooCool commented on GitHub (Apr 20, 2019):
Return of the administrator who deployed our GITEA.
I installed gitea via the docker I can not find the CSS files in it; I understand half that slab to docker, I think I have a docker-dial that assembles a docker gitea that is elsewhere with its own files
but I do not find "semantic.min.css" nowhere
it must be in a virtual disk image or a crap like this: smile:
if I enter the docker that I modify the file I do not know if it will survive the next "make down" make up the docker composes.
@saitho commented on GitHub (Apr 20, 2019):
semantic.min.css is not the place to add the changes, as that is a separate project (https://github.com/Semantic-Org/Semantic-UI). Adding it to _repository.less is fine. You just added it at the wrong line (see my comment in your PR). ;)
@ZerooCool commented on GitHub (Apr 20, 2019):
saitho say :
Adding the CSS property to pre tags inside the .non-diff-file-content .plain-text class should be fine.
on file public/less/_repository.less add the following after line 327: pre { white-space: pre-wrap; } Make sure to indent the lines properly.
Rebuild the CSS file with make generate-stylesheets and commit that as well (as suggested by the DroneCI error message).
ZerooCool :
overflow: scroll Looks better to keep line numbering, especially on PHP pages, which is not necessarily the property white-space: pre-wrap; ?
@ZerooCool commented on GitHub (Apr 20, 2019):
I add line 330 :
https://github.com/ZerooCool/gitea/blob/master/public/less/_repository.less
@ZerooCool commented on GitHub (Apr 21, 2019):
I have test a new pull request with the good code.
https://github.com/go-gitea/gitea/pull/6696
I can not finalize.
Can you make this change.
@ZerooCool commented on GitHub (Apr 22, 2019):
I install NODE.js and NPM
sudo apt-get install curl software-properties-common
curl -sL https://deb.nodesource.com/setup_11.x | sudo bash -
cd gitea-local-depot/
make generate-stylesheets
npx lessc --clean-css public/less/index.less public/css/index.css
npm ERR! code E404
npm ERR! 404 Not Found: lessc@latest
npm ERR! A complete log of this run can be found in:
npm ERR! /home/looksaalpha/.npm/_logs/2019-04-22T02_43_17_676Z-debug.log
L'installation de lessc@latest a échoué avec le code 1
Makefile:392: recipe for target 'generate-stylesheets' failed
make: *** [generate-stylesheets] Error 1
I don't no how i can push my patch for " README WordPress the code is overflowing "
In this file :
public/less/_repository.less
Line 330
Add this code for resolve this issue :
Can you add this patch please, push it on the deposit, because, I can not do it.
You can see that the WordPress README is beyond the scope, so this patch seems to be necessary and answer to this problem.
Using overflow keeps line numbering, so should not generate edge effects.
Thank you for pushing this proposal, to be able to close this issue.
@ZerooCool commented on GitHub (Apr 23, 2019):
https://github.com/go-gitea/gitea/pull/6696
682da74869/public/css/index.csshttps://codecov.io/gh/go-gitea/gitea/pull/6696/diff?src=pr&el=tree-more
It must be checked that the lines are always correctly numbered for the PHP files for example, if that leads to line breaks.
If everything is ok for viewing the WordPress README file that no longer floats.
If the numbering was not affected by the change for PHP files.
Then the issue is resolved and can be closed.
@lafriks commented on GitHub (Apr 24, 2019):
@ZerooCool issue will be automatically closed when PR is merged
@ZerooCool commented on GitHub (Apr 24, 2019):
@lafriks
-> https://github.com/go-gitea/gitea/pull/6696 ?
@lafriks commented on GitHub (Apr 25, 2019):
Yes
@ZerooCool commented on GitHub (Apr 26, 2019):
I can not install Gitea from Github on Debian.
I do not understand if I need install goland.
I followed another tutorial that refers to the official deposit from the site Gitea, to get to install Gitea:
https://wiki.visionduweb.fr/index.php?title=CMS#Le_tutoriel_pour_installer_Gitea
I thought that on the 24th the fix for no longer having the contents of the WordPress README coming out of the window had been fixed.
The problem persists with the version I loaded on Gitea.
I'm definitely not sure if the fix has been made on Github, and will it be carried also to the loading package on the Gitea official website.
It's really a simple CSS problem.
Can you confirm, or, explain, whether or not the patch has been brought.
I have not seen any changes since 6 days regarding CSS that I would like to correct, to no longer have the WordPress README floating.
Can you add the fix?
In this file :
public/less/_repository.less
Line 330
Add this code for resolve this issue :
@kimpenhaus commented on GitHub (Apr 29, 2019):
Hi all,
I am not by any means a CSS guru 😆 but shouldn't it be
autoinstead ofscroll:Whilst having the scrollbars always visible it looks somewhat odd:
Having the scrollbars only visible when content is clipped it looks way better when it is not (at least for me) and fullfills its job in case of overflowing content also:
Sidenode: I am running gitea in a docker conatiner on the latest tag - currenbtly running version
ccf4783@lafriks commented on GitHub (Apr 29, 2019):
@kimpenhaus should be fixed now in latest version