silverwind
7709d418fb
Contribution heatmap improvements ( #35876 )
...
1. Set a fixed height on the element, preventing the content after the
element from shifting on page load. This uses CSS [container query
length
units](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries#container_query_length_units )
as I saw no other way because of the non-linear scaling of the element.
2. Move the "total-contributions" text into the existing vue slot,
eliminating the need for absolute positioning.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-06 09:23:48 +01:00
silverwind
a485b3d513
Remove padding override on .ui .sha.label ( #35864 )
...
Since upgrading to v1.25, I noticed the SHA labels have slightly
different padding than before. I can't pinpoint exactly which change it
was. Fix it by removing the padding override on `.ui .sha.label` and
make the one on`.ui.label` (`2px 6px`) take effect which matches 1.24
rendering.
Before:
<img width="135" height="172" alt="image"
src="https://github.com/user-attachments/assets/2781a854-be08-4a11-bde0-d3699b2b7454 "
/>
After:
<img width="139" height="162" alt="image"
src="https://github.com/user-attachments/assets/5c864fa3-c1f9-4452-ae58-5411dd445865 "
/>
2025-11-06 01:32:39 +00:00
silverwind
062fe1b588
Fix pull description code label background ( #35865 )
...
Fix visual regression from https://github.com/go-gitea/gitea/pull/35567 :
Before:
<img width="612" height="33" alt="image"
src="https://github.com/user-attachments/assets/aee4017c-b8b9-4ac2-9809-9d3eb3fda56c "
/>
After:
<img width="613" height="32" alt="image"
src="https://github.com/user-attachments/assets/ee6624da-b417-4e3b-8773-88c77c2cd672 "
/>
2025-11-05 19:18:26 +02:00
鲁汀
cc30f71ac0
Fix circular spin animation direction ( #35785 )
...
Wait for the status icon to rotate clockwise instead of counterclockwise
before:

after:

---------
Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com >
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: lutinglt <lutinglt@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-11-02 08:30:13 +00:00
silverwind
76eb9ab54c
Improve and fix markup code preview rendering ( #35777 )
...
1. Add the color on the link to the referenced file, which is the more
likely thing the user wants to click
2. Use monospace font on the SHA
3. Tweak text colors
4. Change SHA link to go to the commit instead of the repo root with
commit filter set
5. Added the repo name to the file link text
6. Fix broken line numbering rendering
2025-10-30 05:15:42 +00:00
wxiaoguang
6f14730495
Support selecting theme on the footer ( #35741 )
...
Fixes: https://github.com/go-gitea/gitea/pull/27576
2025-10-28 18:25:00 +08:00
Zettat123
b87d2f72d8
Improve online runner check ( #35722 )
...
This PR moves "no online runner" warning to the runs list.
A job's `runs-on` may contain expressions like `runs-on: [self-hosted,
"${{ inputs.chosen-os }}"]` so the value of `runs-on` may be different
in each run. We cannot check it through the workflow file.
<details>
<summary>Screenshots</summary>
Before:
<img width="960" alt="3d2a91746271d8b1f12c8f7d20eba550"
src="https://github.com/user-attachments/assets/7a972c50-db97-49d2-b12b-c1a439732a11 "
/>
After:
<img width="960" alt="image"
src="https://github.com/user-attachments/assets/fc076e0e-bd08-4afe-99b9-c0eb0fd2c7e7 "
/>
</details>
This PR also splits `prepareWorkflowDispatchTemplate` function into 2
functions:
- `prepareWorkflowTemplate` get and check all of the workflows
- `prepareWorkflowDispatchTemplate` only prepare workflow dispatch
config for `workflow_dispatch` workflows.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-24 12:02:52 -07:00
wxiaoguang
93d12fa8d3
Make external iframe render work ( #35730 )
...
Fix #35729 , #17635 , #21098
2025-10-23 08:01:38 +00:00
wxiaoguang
cbfe88fdb3
Fix various trivial problems ( #35714 )
2025-10-21 13:19:29 +08:00
Bryan Mutai
59d524ea0d
feat(diff): Enable commenting on expanded lines in PR diffs ( #35662 )
...
Fixes #32257
/claim #32257
Implemented commenting on unchanged lines in Pull Request diffs, lines
are accessed by expanding the diff preview. Comments also appear in the
"Files Changed" tab on the unchanged lines where they were placed.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-19 18:19:12 +08:00
Surya Purohit
9a24d250cc
Use LFS object size instead of blob size when viewing a LFS file ( #35679 )
...
shows the main LFS filesize instead of the pointer filesize when viewing
a file
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-16 17:42:54 +08:00
鲁汀
2f007bffcc
Fix code tag style problem and LFS view bug ( #35628 )
...
Fix #35567
---------
Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-10-12 02:38:42 +08:00
Kausthubh J Rao
0f94ec51e8
fix(webhook): prevent tag events from bypassing branch filters targets #35449 ( #35567 )
...
Tag creation/deletion was triggering push webhooks even when branch
filters were configured, causing unintended pipeline executions.
This change modifies the branch filter logic to check the full ref
name directly instead of first determining if it's a "branch" event.
Fixes: Tag events now properly respect branch filters
- Add getPayloadRef() function to extract full ref names
- Update PrepareWebhook() to use direct ref matching
- Prevents refs/tags/* from matching refs/heads/* filters
Closes #35449
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
2025-10-03 08:51:57 +02:00
silverwind
5f0c88d21a
Fix overflow in notifications list ( #35446 )
...
Before:
<img width="1339" height="159" alt="Screenshot 2025-09-10 at 02 29 09"
src="https://github.com/user-attachments/assets/097f0929-f387-428f-a53d-74cf88d0b013 "
/>
After:
<img width="1335" height="114" alt="Screenshot 2025-09-10 at 02 29 17"
src="https://github.com/user-attachments/assets/2185c9aa-eca0-43da-b244-674e7b81aef8 "
/>
2025-09-10 13:05:35 +00:00
Lunny Xiao
d34d4076db
Move organization's visibility change to danger zone. ( #34814 )
...
<img width="1185" alt="image"
src="https://github.com/user-attachments/assets/d48c4db2-df7c-43b3-986c-62e042190a51 "
/>
<img width="829" alt="image"
src="https://github.com/user-attachments/assets/772b8a14-6837-41f2-9d78-9f0489ef1c7d "
/>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-08-20 20:57:42 -07:00
silverwind
443d30d764
Fix font-size in inline code comment preview ( #35209 )
...
Previously, when writing a inline code comment, the markup preview would
have incorrect font size of 16px. This fixes it to 14px and also
combines similar CSS rules into one.
I'm not a fan of this selector complexity, but it seems like a necessity
because standalone markup files render at 16px while comments render at
14px.
---------
Signed-off-by: silverwind <me@silverwind.io >
2025-08-12 08:06:45 +00:00
silverwind
94ce1ec361
Update stylelint, enable report* options ( #35236 )
...
- Update stylelint
- Enable three [`report*`
directives](https://stylelint.io/user-guide/configure/#report )
- Fix discovered issues
2025-08-08 16:52:49 +00:00
silverwind
5141cedce0
Update JS and PY deps ( #35191 )
...
- Updated all dependencies
- Fixed new CSS lint errors, specifically tested the
RepoActivityTopAuthors.vue change
- Regenerated SVGs
2025-08-01 07:24:26 +00:00
silverwind
5620b931ca
Align issue-title-buttons with list-header ( #35018 )
...
This change concerns the "Edit" and "New Issue" button on top right.
With this change, switching from the issue list into an issue, the "New
Issue" button will no longer "shift" from the postion on the previous
page.
<img width="1299" alt="Screenshot 2025-07-09 at 17 37 31"
src="https://github.com/user-attachments/assets/1ea55d8a-2abd-49b0-951a-ccc6466a74ee "
/>
<img width="1300" alt="Screenshot 2025-07-09 at 17 37 19"
src="https://github.com/user-attachments/assets/05997d9d-25eb-4786-803d-00c575f78bef "
/>
---------
Signed-off-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-07-18 09:13:32 +00:00
silverwind
a0df2a75d6
Increase gap on latest commit ( #35104 )
2025-07-17 20:53:03 +00:00
Gary Wang
aed5f965a4
UI: add hover background to table rows in user and repo admin page ( #35072 )
2025-07-14 08:29:35 -04:00
wxiaoguang
920a55c458
Refactor view issue & comment list styles ( #35061 )
...
Fix #35060
2025-07-13 22:52:35 +08:00
wxiaoguang
014114dd19
Make submodule link work with relative path ( #35034 )
...
Fix #35033
2025-07-10 16:38:42 +00:00
Anbraten
078d373c01
Partially refresh notifications list ( #35010 )
...
This PR prevents full reloads for the notifications list when changing a
notifications status (read, unread, pinned).
---------
Co-authored-by: Anton Bracke <anton.bracke@fastleansmart.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-07-10 04:15:14 +00:00
wxiaoguang
6460237f2c
Fix various problems ( #35012 )
...
* Fix #35011
* Fix incorrect log message for "Protocol"
* Remove unnecessary styles, fix "comment-header" wrap, fix label height
2025-07-09 16:46:51 +00:00
wxiaoguang
2a19b0057f
Refactor time tracker UI ( #34983 )
...
Although we decided to "reduce the button amount" on the side bar, not
only one user reported that the "time tracker dropdown" is not easy to
use.
So the best we can do at the moment is: move the buttons to the sidebar
again.
Fix #34979
2025-07-08 08:59:31 +00:00
wxiaoguang
a517f726fa
Improve project & label color picker and image scroll ( #34971 )
...
Fix #34609
Fix #34967
2025-07-06 23:37:26 +08:00
wxiaoguang
710d4409b2
Refactor some trivial problems ( #34959 )
...
1. make our "route group pattern match" also update chi's RoutePattern
2. fix incorrect "NotFound" call in conda package
3. make ".flex-item .flex-item-main" has a general gap, then no need to
use `tw` tricks
4. improve the "test webhook" UI
2025-07-05 23:19:33 +08:00
wxiaoguang
fc7ae0ae81
Fix git graph page ( #34948 )
...
fix #34946
2025-07-04 15:41:19 +00:00
wxiaoguang
c1ffcf9980
Refactor head navbar icons ( #34922 )
...
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Giteabot <teabot@gitea.io >
2025-07-04 13:03:22 +02:00
Kerwin Bryant
02e23527d2
Add support for 3D/CAD file formats preview ( #34794 )
...
Fix #34775
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-30 16:12:25 +08:00
wxiaoguang
6335bfb430
Improve tags list page ( #34898 )
2025-06-30 02:15:39 +00:00
Kerwin Bryant
c3bbd16b99
Optimize flex layout of release attachment area ( #34885 )
...
before:

after:

2025-06-27 16:45:39 +00:00
silverwind
e427c8f6e5
Improve labels-list rendering ( #34846 )
...
Make labels list use consistent gap
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-27 23:12:25 +08:00
wxiaoguang
4d5116089c
Refactor wiki ( #34805 )
...
Remove unclear code
2025-06-22 18:53:33 +08:00
Lunny Xiao
b3c2850c29
Rework delete org and rename org UI ( #34762 )
...
# What's the problem of the original implementation
Renaming organization will mix with organization's information change
make the operation difficult to keep consistent.
This PR created a danger zone like what's repository setting. It also
moved organization's `rename` and `delete` operations to this zone. The
original updating repository will not change the name any more.
This is also a step to extract the `updaterepository` function
completely.
Before:


After:




---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-21 18:21:48 +00:00
wxiaoguang
27d521e294
Refactor editor ( #34780 )
...
A complete rewrite
2025-06-21 19:20:51 +08:00
Kerwin Bryant
5534cc1259
Fix the issue of abnormal interface when there is no issue-item on the project page ( #34791 )
2025-06-20 10:27:56 -07:00
wxiaoguang
ce35971943
Refactor packages (func name & UI) ( #34773 )
...
1. Use `OpenXxx` instead of `GetXxx` because the returned readers should
be correctly closed, and clarify the behaviors of the functions: they
increase the download counter
2. Use `packages-content` styles instead of `issue-content`
2025-06-18 19:04:24 +00:00
wxiaoguang
8db058ba2e
Fix markdown wrap ( #34697 )
...
Fix #34696
2025-06-12 10:09:42 +08:00
wxiaoguang
ec0f9b80df
Fix commit message rendering and some UI problems ( #34680 )
...
* Fix #34679
* Fix #34676
* Fix #34674
* Fix #34526
2025-06-10 23:20:32 +08:00
silverwind
6493ad4ee5
Add --color-logo for text that should match logo color ( #34639 )
...
Add a new color that indicates the logo's primary color and use it in
the frontpage over previous green color. This will be useful for
customization.
<img width="1347" alt="Screenshot 2025-06-07 at 16 53 34"
src="https://github.com/user-attachments/assets/496aa81f-c910-4c28-bd12-f2473a68bbab "
/>
2025-06-07 18:02:28 +00:00
silverwind
6853ee0ccf
Misc CSS fixes ( #34638 )
...
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 "
/>
2025-06-07 19:57:07 +02:00
6543
383047184b
Fix notification count positioning for variable-width elements ( #34597 )
...
The notification count is currently positioned using top/left
coordinates from its container's top/left corner. This works fine for
fixed-size containers like the bell icon.
This PR changes the positioning to use bottom/left coordinates from the
container's top/right corner instead. This improvement is needed when
placing notification counts on text that can vary in size due to
different languages or fonts.
The bell and stopwatch should look the same after this change.
---
*Sponsored by Kithara Software GmbH*
Co-authored-by: Marcel Haß <m.hass@kithara.com >
2025-06-05 19:02:07 +00:00
silverwind
66e35f6e37
Fix margin issue in markup paragraph rendering ( #34599 )
...
The Fomantic-inherited `p:last-child` rule in base.css interferes with
this markdown rendering.
2025-06-05 05:07:14 +00:00
silverwind
62ba38c5e7
Make pull request and issue history more compact ( #34588 )
...
Reduced spacing around history entries and inside the commits list, also fixed unequal horizontal spacing inside the commit badge.
2025-06-03 16:00:39 +00:00
Kerwin Bryant
8f36e8c8c7
Fix line-button issue after file selection in file tree ( #34574 )
...
Fix the issue where the line-button fails to work after selecting a file
from the file tree.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-02 09:52:12 +08:00
wxiaoguang
5ba876a533
Clean up "file-view" related styles ( #34558 )
...
Move "file-view" and "code-view" related styles to their own file,
remove unnecessary `!important`
2025-05-28 21:43:59 +08:00
wxiaoguang
974aa2fdd0
Fix project board view ( #34470 )
...
Fix #34469
2025-05-15 23:25:46 +08:00
silverwind
9c886ef057
Merge and tweak markup editor expander CSS ( #34409 )
...
- 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: wxiaoguang <wxiaoguang@gmail.com >
2025-05-09 17:14:21 +02:00