e8646ad1d8
Misc CSS fixes ( #34638 ) ( #34644 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Backport #34638 by @silverwind
1. apply [`text-wrap:
balance`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap#balance )
to various places making the text wrapping nicer, moving
`empty-placeholder` CSS to base because it's not repo-specific.
<img width="537" alt="Screenshot 2025-06-07 at 15 09 00"
src="https://github.com/user-attachments/assets/8b37d031-269d-4ab3-ba59-2ac469c431e4 "
/>
<img width="514" alt="Screenshot 2025-06-07 at 15 11 16"
src="https://github.com/user-attachments/assets/27a63117-be1d-4797-80f7-9ed14cca41dc "
/>
<img width="346" alt="Screenshot 2025-06-07 at 15 22 26"
src="https://github.com/user-attachments/assets/2f371384-0330-4a00-bb79-bc3c50ba5c91 "
/>
2. fix overflow-related bug on actions run list, before:
<img width="302" alt="Screenshot 2025-06-07 at 15 26 26"
src="https://github.com/user-attachments/assets/d6607eeb-288b-4e81-a770-45a421c9c68c "
/>
After:
<img width="299" alt="Screenshot 2025-06-07 at 15 26 59"
src="https://github.com/user-attachments/assets/b0ddb66f-d4fe-4711-8ed9-eca08ce608f3 "
/>
Co-authored-by: silverwind <me@silverwind.io >
2025-06-07 18:24:59 +00:00
fac434da0a
Fix margin issue in markup paragraph rendering ( #34599 ) ( #34606 )
...
Backport #34599 by @silverwind
The Fomantic-inherited `p:last-child` rule in base.css interferes with
this markdown rendering:
```
1. a
2. a
```
Before (unequal margin):
<img width="143" alt="Screenshot 2025-06-04 at 14 09 07"
src="https://github.com/user-attachments/assets/6d6ba5e0-0d84-42e0-a0e4-9e93a59c4d65 "
/>
After (rendering matches GitHub):
<img width="181" alt="Screenshot 2025-06-04 at 14 09 14"
src="https://github.com/user-attachments/assets/bb81e14e-bc9f-4d52-92d0-f7a17c63070e "
/>
Co-authored-by: silverwind <me@silverwind.io >
2025-06-05 13:48:07 +08:00
bacc69db83
Make pull request and issue history more compact ( #34588 ) ( #34594 )
...
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
Backport #34588 by @silverwind
Before, waste of space in multiple places:
<img width="962" alt="Screenshot 2025-06-02 at 23 11 08"
src="https://github.com/user-attachments/assets/ecddf247-d690-434c-a865-9d5e6c690b7d "
/>
After, reduced spacing around history entries and inside commits list,
also fixed unequal horizontal spacing inside commit badge.
<img width="946" alt="Screenshot 2025-06-02 at 23 10 45"
src="https://github.com/user-attachments/assets/fe92f8e6-28af-4647-ac3a-1aced23d3b27 "
/>
Also, here's a rendering of issue history events, it's more compact now
at 8px padding:
<img width="565" alt="image"
src="https://github.com/user-attachments/assets/cdbf7c0a-a9a2-4942-85fc-c388abb36e15 "
/>
Co-authored-by: silverwind <me@silverwind.io >
2025-06-04 00:04:07 +00:00
c5da032193
fixed incorrect page navigation with up and down arrow on last item of dashboard repos ( #34570 ) ( #34596 )
...
Backport #34570 by metiftikci
Co-authored-by: metiftikci <metiftikci@hotmail.com >
2025-06-04 07:13:39 +08:00
7baa6fa47c
Fix some trivial problems ( #34579 ) ( #34585 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Backport #34579 by wxiaoguang
See the comments
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-02 17:31:35 +00:00
e9481e1da3
Fix line-button issue after file selection in file tree ( #34574 ) ( #34576 )
...
Backport #34574
---------
Co-authored-by: Kerwin Bryant <kerwin612@qq.com >
2025-06-01 23:20:21 -07:00
47537a8361
Add a button editing action secret #34348 ( #34462 )
...
Backport #34348
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-16 15:26:21 +00:00
d6233c25b5
Fix project board view ( #34470 ) ( #34475 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Backport #34470 by wxiaoguang
Fix #34469
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-16 01:32:53 +08:00
89f1df033a
Fix comment textarea scroll issue in Firefox ( #34438 ) ( #34446 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Backport #34438 by @silverwind
In the comment editor, there is a bug in Firefox where the scroll
position unexpectedly moves up, which is annoying. This is not
reproducible in Chrome and Safari. To reproduce here are some steps:
- Go into an editable issue
- Scroll page to bottom
- Focus the textarea and press Return many times, causing the textarea
to get a scrollbar
- Scroll page to bottom again
- Press Return once more
- Page should not scroll up.
This fixes the bug by adding a temporary margin, and I verified it works
in all browsers.
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-13 18:39:02 +02:00
38cc7453e2
Merge and tweak markup editor expander CSS ( #34409 ) ( #34415 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Backport #34409 by @silverwind
- Merge the CSS for the two expanders (text-expander-element and
tribute.js) into one file
- Fix overflow issues
- Remove min-width
- Various other tweaks like borders, colors, padding, gaps.
text-expander:
<img width="645" alt="Screenshot 2025-05-09 at 02 21 24"
src="https://github.com/user-attachments/assets/33276dc4-38e8-45e1-8216-2a4baa9bc039 "
/>
tribute:
<img width="624" alt="Screenshot 2025-05-09 at 02 21 37"
src="https://github.com/user-attachments/assets/91fbcd1a-9bfc-40fd-93f0-a05b4bd4c98d "
/>
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-09 18:58:19 +02:00
be1090cb2d
Grey out expired artifact on Artifacts list ( #34314 ) ( #34404 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Backport #34314 by @NorthRealm
Grey out expired artifact on Artifacts list.


Co-authored-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-08 10:56:51 -07:00
6747e3e0eb
Fix some dropdown problems on the issue sidebar ( #34308 ) ( #34327 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Backport #34308 by wxiaoguang
Also fix #34300
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-01 09:24:18 -07:00
533b8b2d3d
Fix button alignments ( #34276 )
...
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
Continue with #34206 .
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-04-27 19:39:03 +00:00
27ff5e2e84
Introduce --page-space-bottom
at 64px ( #30692 )
...
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Previously we would always leave 80px space before the page footer, but
this is problematic with small viewport heights on projects page for
example. I think it' ideal that we use `--page-spacing` which is already
in use for spacing on top of the page.
The `secondary-nav` margin is also adjusted as I see no value why this
shouldn't be the same value.
2025-04-25 10:53:26 -07:00
a9343896f4
Option to delay conflict checking of old pull requests until page view ( #27779 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
`[repository.pull-request] DELAY_CHECK_FOR_INACTIVE_DAYS` is a new
setting to delay the mergeable check for pull requests that have been
inactive for the specified number of days.
This avoids potentially long delays for big repositories with many pull
requests. and reduces system load overall when there are many
repositories or pull requests.
When viewing the PR, checking will start immediately and the PR merge
box will automatically reload when complete. Accessing the PR through
the API will also start checking immediately.
The default value of `7` provides a balance between system load, and
keeping behavior similar to what it was before both for users and API
access. With `0` all conflict checking will be delayed, while `-1`
always checks immediately to restore the previous behavior.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-24 19:26:57 +00:00
e625250ffc
Fix various trivial frontend problems ( #34263 )
...
1. Fix #20606
2. Fix #34246
3. Fix missing spaces, fix misspells, no visual change.
4. Fix missing "not-mobile", fix #34265
---------
Co-authored-by: silverwind <me@silverwind.io >
2025-04-24 09:11:54 +08:00
b758241f28
Fix runner list tmpl ( #34270 )
...
Fix #34269
And fix some layout problems.
2025-04-23 15:34:18 +00:00
c2c04ffff7
Add fullscreen mode as a more efficient operation way to view projects ( #34081 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Maybe fix #33482 , maybe fix #34015
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-23 13:42:22 +08:00
4832cb9e27
Display when a release attachment was uploaded ( #34261 )
...
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Fix #34260
2025-04-22 23:03:49 +08:00
c9aa9068b3
Fix various UI problems ( #34243 )
...
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
release-nightly / nightly-binary (push) Waiting to run
Also fix #34242
2025-04-19 08:43:22 +00:00
eda6d65818
markup: improve code block readability and isolate copy button ( #34009 )
...
Fix #33197
Improve the rendering of code blocks in markdown content
for better readability and UI stability across screen sizes.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-19 05:53:39 +00:00
aeb7005245
Optimize the calling code of queryElems ( #34235 )
2025-04-19 08:17:07 +08:00
dd0caf7e16
Fix various misalignments and overflows ( #34227 )
...
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
release-nightly / nightly-binary (push) Has been cancelled
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-17 10:32:41 +00:00
bde014e46d
Fix button alignments and remove unnecessary styles ( #34206 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-16 08:14:10 +00:00
e8c42ae601
Fix empty repo clone panel border ( #34219 )
...
Remove duplicate border
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-16 07:05:40 +00:00
dcfa42dd8f
Fix: quoted replies incorrectly render user input as part of the quote ( #34216 )
...
Updated the quote insertion logic so that it adds one more line break
(`\n`) work like Github. This way, the cursor lands on a new line and
the user's reply is no longer interpreted as part of the quote.
Fixes #34177
2025-04-16 14:32:58 +08:00
2b99a58f54
Mark parent directory as viewed when all files are viewed ( #33958 )
...
Fix #25644
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-15 22:35:22 +08:00
33df23c1f0
Update RepoContributors.vue ( #34194 )
2025-04-14 14:51:49 +00:00
f4196a8843
Optimize overflow-menu ( #34183 )
...
Optimized the overflow-menu:
1. Close the tippy when a menu item inside the tippy is clicked.
2. When a menu item inside the tippy is selected, move the active state
of the menu to the tippy's button.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-13 01:59:36 +00:00
fa49cd719f
feat: Add sorting by exclusive labels (issue priority) ( #33206 )
...
Fix #2616
This PR adds a new sort option for exclusive labels.
For exclusive labels, a new property is exposed called "order", while in
the UI options are populated automatically in the `Sort` column (see
screenshot below) for each exclusive label scope.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-10 17:18:07 +00:00
02e49a0f47
Fix vertical centering of file tree icons and use entryIcon for submodules/symlinks ( #34137 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
In the file tree, the icons are not vertically centered, which affects
the overall visual consistency.
Currently, the icons of submodules and symlinks do not adopt the value
of entryIcon, resulting in inconsistent icon display.
before:

after:

---------
Co-authored-by: silverwind <me@silverwind.io >
2025-04-09 18:10:16 -07:00
8c9d2bdee3
Keep file tree view icons consistent with icon theme ( #33921 )
...
Fix #33914
before:

after:

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-06 19:35:08 +00:00
a62ed19da6
Use overflow-wrap: anywhere
to replace word-break: break-all
( #34126 )
2025-04-06 17:13:02 +08:00
e1c2d05bde
Fix markdown render behaviors ( #34122 )
...
* Fix #27645
* Add config options `MATH_CODE_BLOCK_DETECTION`, problematic syntaxes
are disabled by default
* Fix #33639
* Add config options `RENDER_OPTIONS_*`, old behaviors are kept
2025-04-05 11:56:48 +08:00
ee6929d96b
Refactor dropdown ellipsis ( #34123 )
...
Remove legacy `truncated-item-container` and `truncated-item-name`.
2025-04-05 03:21:11 +00:00
ba921fd903
Fix markdown frontmatter rendering ( #34102 )
...
Fix #34101
2025-04-03 05:48:24 +00:00
86c1a33369
Fix some UI bugs and clean up unused tests ( #34088 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
1. Make the material icon falls back to basic theme correctly
2. Remove `TestAttributeReader`, the problem has been resolved.
3. Fix `toggleElem` bug and add tests
2025-04-01 07:02:30 +00:00
741b53eb30
[Fix] Resolve the problem of commit_statuses not being loaded at the top - right when switching files from the file tree ( #34079 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-31 18:39:08 +00:00
0fd5392087
Fix markup content overflow ( #34072 )
...
Fix #34069 : use `overflow-wrap: anywhere` to correctly wrap overflowed
content.
2025-03-31 11:56:03 +08:00
2a9c5c9e3d
Add toggleClass function in dom.ts ( #34063 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
This PR adds a toggleClass function in dom.ts, aiming to implement DOM
class toggling functionality.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-30 14:19:54 +08:00
58d0a3f4c2
Simplify emoji rendering ( #34048 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
It seems like most of our custom styles around the .emoji class are
useless and we can just make them render like any other text. Rendering
should now match GitHub.
Fixes: https://github.com/go-gitea/gitea/issues/34019
Also see https://github.com/go-gitea/gitea/pull/11541 and
https://github.com/go-gitea/gitea/pull/12317 for some context. I think
browser emoji rendering has improved in recent years so these hacks are
no longer needed.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-28 18:25:13 +08:00
b542769102
Adjust the layout of the toolbar on the Issues/Projects page ( #33667 )
...
On the list page, labels and milestones do not serve as a switch-tab.
Instead, they function as page navigation. The switch-tab is only
appropriate for use on the labels and milestones pages.
And fix projects page layout.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-28 07:55:12 +00:00
053592d847
fix org repo creation being limited by user limits ( #34030 )
...
fixes an issue where user is unable to create new repository in
organization via UI if repository limits are in place and user has
exhausted them for their own namespace.
closes: https://github.com/go-gitea/gitea/issues/15504
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-27 13:16:17 +00:00
c7b85f7070
Fix dropdown module accessing ( #34026 )
...
Follow #34014 .
2025-03-26 16:01:43 +00:00
d70be9d0fe
Polyfill WeakRef ( #34025 )
...
Fix #33407
2025-03-26 23:56:25 +08:00
d28a7f9fea
Fix dropdown delegating and some UI problems ( #34014 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
The old logic is incomplete. See the comment for the improved logic.
Fix #34011
And more fixes:
1. use empty "alt" for images, otherwise the width is not right when the
image fails to load
2. remove the "dropdown icon" patch, because it has been clearly done in
"dropdown.js" now
3. remove the "dropdown filtered item" patch, added a clear callback,
and improve the logic
4. fix global init when a node is removed and added back gain (eg: the
"cherry pick" dialog with a dropdown)
2025-03-26 02:51:22 +00:00
51d86adb6d
Fix some migration and repo name problems ( #33986 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
1. Ignore empty inputs in `UnmarshalHandleDoubleEncode`
2. Ignore non-existing `stateEvent.User` in gitlab migration
3. Enable `release` and `wiki` units when they are selected in migration
4. Sanitize repo name for migration and new repo
2025-03-24 20:26:58 -07:00
0da7318cf3
Allow filtering issues by any assignee ( #33343 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
This is the opposite of the "No assignee" filter, it will match all
issues that have at least one assignee.
Before

After

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-21 04:25:36 +00:00
e25f860735
Fix "toAbsoluteLocaleDate" test when system locale is not en-US ( #33939 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-03-19 19:49:05 +08:00
dcbf6c2d13
Optimize Layout Styles of Filelist ( #33920 )
...
Align items
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-19 00:59:33 +08:00