Lunny Xiao 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							be2a6b4414 
							
						 
					 
					
						
						
							
							Fix bug when review pull request commits ( #35192 )  
						
						... 
						
						
						
						The commit range in the UI follows a half-open, half-closed convention:
(,]. When reviewing a range of commits, the beforeCommitID should be set
to the commit immediately preceding the first selected commit. For
single-commit reviews, we must identify and use the previous commit of
that specific commit.
The endpoint ViewPullFilesStartingFromCommit is currently unused and can
be safely removed.
Fix  #35157  
Replace #35184  
Partially extract from #35077  
						
						
					 
					
						2025-08-03 10:23:10 -07:00 
						 
				 
			
				
					
						
							
							
								bytedream 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3a37d63d61 
							
						 
					 
					
						
						
							
							Allow renaming/moving binary/LFS files in the UI ( #34350 )  
						
						... 
						
						
						
						Adds the ability to rename/move binary files like binary blobs or images
and files that are too large in the web ui.
This was purposed in #24722 , along with the ability edit images via an
upload of a new image, which I didn't implement here (could be done in a
separate PR).
Binary file content:

File too large:

GitHub does the same (I've copied the text from there):
 
						
						
					 
					
						2025-06-16 17:15:07 -07:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							62f73491f3 
							
						 
					 
					
						
						
							
							Use lfs label for lfs file rather than a long description ( #34363 )  
						
						... 
						
						
						
						Before

After
 
						
						
					 
					
						2025-05-05 00:07:29 +03:00 
						 
				 
			
				
					
						
							
							
								Kerwin Bryant 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2b76993415 
							
						 
					 
					
						
						
							
							support the open-icon of folder ( #34168 )  
						
						... 
						
						
						
						Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2025-04-28 19:51:32 -07:00 
						 
				 
			
				
					
						
							
							
								Kerwin Bryant 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dd0caf7e16 
							
						 
					 
					
						
						
							
							Fix various misalignments and overflows ( #34227 )  
						
						... 
						
						
						
						---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2025-04-17 10:32:41 +00:00 
						 
				 
			
				
					
						
							
							
								Kerwin Bryant 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							bde014e46d 
							
						 
					 
					
						
						
							
							Fix button alignments and remove unnecessary styles ( #34206 )  
						
						... 
						
						
						
						Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2025-04-16 08:14:10 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1ea5216f4a 
							
						 
					 
					
						
						
							
							Replace text-align classes with tailwind ( #33905 )  
						
						... 
						
						
						
						Small refactor to remove these CSS classes in favor of tailwind.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2025-03-16 12:08:16 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6422f05a4e 
							
						 
					 
					
						
						
							
							Decouple diff stats query from actual diffing ( #33810 )  
						
						... 
						
						
						
						The diff stats are no longer part of the diff generation.
Use `GetDiffShortStat` instead to get the total number of changed files,
added lines, and deleted lines.
As such, `gitdiff.GetDiff` can be simplified:
It should not do more than expected.
And do not run "git diff --shortstat" for pull list. Fix  #31492  
						
						
					 
					
						2025-03-08 17:36:08 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							698ae7aa5b 
							
						 
					 
					
						
						
							
							Fix dynamic content loading init problem ( #33748 )  
						
						... 
						
						
						
						1. Rewrite `dirauto.ts` to `observer.ts`. 
* We have been using MutationObserver for long time, it's proven that it
is quite performant.
    * Now we extend its ability to handle more "init" works.
2. Use `observeAddedElement` to init all non-custom "dropdown".
3. Use `data-global-click` to handle click events from dynamically
loaded elements.
* By this new approach, the old fragile selector-based
(`.comment-reaction-button`) mechanism is removed.
4. By the way, remove unused `.diff-box` selector, it was abused and
never really used.
A lot of FIXMEs in "repo-diff.ts" are completely fixed, newly loaded
contents could work as expected. 
						
						
					 
					
						2025-03-01 02:02:10 +00:00 
						 
				 
			
				
					
						
							
							
								Alexander McRae 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							aba96f65cd 
							
						 
					 
					
						
						
							
							Use git diff-tree for DiffFileTree on diff pages ( #33514 )  
						
						... 
						
						
						
						Modify Diff View FileTree to show all files
## Changes
* removes Show Status button on diff
* uses `git diff-tree` to generate the file tree for the diff
* doesn't reload the diff tree each time we load more files in the
preview
* selecting and unloaded file will keep loading until that file is
loaded
* removes `DiffFileList.vue` and "Show Stats" in diff options
## Open Questions
* selecting and unloaded file will keep loading until that file is
loaded. Is this behaviour okay? It matches what github does.
### Demo
In this demo I set `git.MAX_GIT_DIFF_FILES=1` in my `app.ini` to
demonstrate a worst case example. In most cases the behaviour isn't
nearly as jarring as we load a bunch of files at a time.
https://github.com/user-attachments/assets/72f29663-d6fc-472d-94fa-7fb5950c2836 
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2025-02-28 00:58:25 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1ab5938e82 
							
						 
					 
					
						
						
							
							Hide/disable unusable UI elements when a repository is archived ( #33459 )  
						
						... 
						
						
						
						And by the way, remove some jQuery code 
						
						
					 
					
						2025-01-31 20:47:31 +08:00 
						 
				 
			
				
					
						
							
							
								Rowan Bohde 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a8e7caedfa 
							
						 
					 
					
						
						
							
							add submodule diff links ( #33097 )  
						
						... 
						
						
						
						This adds links to submodules in diffs, similar to the existing link
when viewing a repo at a specific commit. It does this by expanding diff
parsing to recognize changes to submodules, and find the specific refs
that are added, deleted or changed.
Related #25888 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2025-01-08 01:38:30 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3d3ece36d2 
							
						 
					 
					
						
						
							
							Refactor comment history and fix content edit ( #33018 )  
						
						... 
						
						
						
						And fix a regression bug for comment content editing.
Now 11 "import jquery" files left 
						
						
					 
					
						2024-12-28 19:26:16 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b7260400f8 
							
						 
					 
					
						
						
							
							Refactor tmpl and blob_excerpt ( #32967 )  
						
						... 
						
						
						
						1. do not use `{{/* */}}` to remove spaces, use `{{- -}}`
2. fix "blob_excerpt" endpoint, remove the legacy fragile code: have
tested commit diff and wiki diff 
						
						
					 
					
						2024-12-25 00:51:13 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							00e2b339b6 
							
						 
					 
					
						
						
							
							Fix "unicode escape" JS error ( #32806 )  
						
						... 
						
						
						
						<details>




</details>
---------
Co-authored-by: silverwind <me@silverwind.io> 
						
						
					 
					
						2024-12-12 18:37:44 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c9e582c6b6 
							
						 
					 
					
						
						
							
							Refactor markdown editor and use it for milestone description editor ( #32688 )  
						
						... 
						
						
						
						Refactor markdown editor to clarify its "preview" behavior and remove
jQuery code.
Close  #15045 
---------
Co-authored-by: silverwind <me@silverwind.io> 
						
						
					 
					
						2024-12-04 02:11:34 +00:00 
						 
				 
			
				
					
						
							
							
								Kerwin Bryant 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							25cacaf0aa 
							
						 
					 
					
						
						
							
							Fixed Issue of Review Menu Shown Behind ( #32631 )  
						
						... 
						
						
						
						Fixed  #31144  
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
					
						2024-11-26 09:24:56 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d11f8d24b0 
							
						 
					 
					
						
						
							
							Add 'Copy path' button to file view ( #32584 )  
						
						... 
						
						
						
						Also adds a tooltip which is replicated to the same button in the diff
box. Fixes: https://github.com/go-gitea/gitea/issues/32583  
						
						
					 
					
						2024-11-21 04:03:17 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1e3c4d8fc7 
							
						 
					 
					
						
						
							
							Improve mobile review ui ( #31091 )  
						
						... 
						
						
						
						Fixes: https://github.com/go-gitea/gitea/issues/31071 
Not perfect but much better than before.
Before: Overflows, sticky not working, filename unreadable:
<img width="506" alt="Screenshot 2024-05-27 at 02 02 40"
src="https://github.com/go-gitea/gitea/assets/115237/a06b1edf-dece-4402-98c2-68670fca265f ">
After:
<img width="457" alt="Screenshot 2024-05-27 at 01 59 06"
src="https://github.com/go-gitea/gitea/assets/115237/2a282c96-e719-4554-b418-81963ae6269c "> 
						
						
					 
					
						2024-05-28 13:41:37 +00:00 
						 
				 
			
				
					
						
							
							
								delvh 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							072b029b33 
							
						 
					 
					
						
						
							
							Simplify review UI ( #31062 )  
						
						... 
						
						
						
						Instead of always displaying all available actions as buttons, merge
them into a single dropdown menu, same as GitHub. That decreases visual
overload and is more mobile-friendly, while not losing any
functionality.
## Screenshots
<details><summary>Before</summary>

</details> 
<details><summary>After (unexpanded)</summary>

</details>
 
<details><summary>After (expanded)</summary>

</details> 
						
						
					 
					
						2024-05-27 08:24:34 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8de2992ffb 
							
						 
					 
					
						
						
							
							Make Ctrl+Enter work for issue/comment edit ( #30720 )  
						
						... 
						
						
						
						Fix  #30710  
					
						2024-04-27 14:32:00 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							50099d7af4 
							
						 
					 
					
						
						
							
							Various improvements for long file and commit names ( #30374 )  
						
						... 
						
						
						
						Fixes: https://github.com/go-gitea/gitea/issues/29438 
This contains numerous enhancements for how large commit messages and
large filenames render. Another notable change is that the file path is
no longer cut off by backend at 30 chars, but rendered in full with
wrapping.
<img width="1329" alt="Screenshot 2024-04-09 at 21 53 57"
src="https://github.com/go-gitea/gitea/assets/115237/5ccbb3d6-643a-4f60-ba79-3572b36d5182 ">
<hr>
<img width="711" alt="Screenshot 2024-04-09 at 21 44 24"
src="https://github.com/go-gitea/gitea/assets/115237/6ffe8fbb-407c-4aa7-b591-3d80daea7d57 ">
<hr>
<img width="439" alt="Screenshot 2024-04-09 at 21 19 03"
src="https://github.com/go-gitea/gitea/assets/115237/1ec7f6e9-2fd8-4841-87eb-6ca02ab9cd61 ">
<hr>
<img width="444" alt="Screenshot 2024-04-09 at 21 18 52"
src="https://github.com/go-gitea/gitea/assets/115237/70931b9e-5841-477e-b3bc-98f8d2662964 ">
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2024-04-10 06:13:22 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							226a82a939 
							
						 
					 
					
						
						
							
							Migrate font-family to tailwind ( #30118 )  
						
						... 
						
						
						
						Enable us to use tailwind's
[`font-family`](https://tailwindcss.com/docs/font-family ) classes as
well as remove `gt-mono` in favor of `tw-font-mono`. I also merged the
"compensation" to one selector, previously this was two different values
0.9em and 0.95em. I did not declare a `serif` font because I don't think
there will ever be a use case for those. Command ran:
```sh
perl -p -i -e 's#gt-mono#tw-font-mono#g' web_src/js/**/* templates/**/* 
						
						
					 
					
						2024-03-28 08:31:07 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							538790ad1d 
							
						 
					 
					
						
						
							
							Put an edit file button on pull request files to allow a quick operation ( #29697 )  
						
						... 
						
						
						
						Resolve  #23848 
This PR put an edit file button on pull request files to allow a quick
edit for a file. After the edit finished, it will return back to the
viewed file position on pull request files tab.
It also use a branch view file link instead of commit link when it's a
non-commit pull request files view.
<img width="1532" alt="image"
src="https://github.com/go-gitea/gitea/assets/81045/3637ca4c-89d5-4621-847b-79702a44f617 ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io> 
					
						2024-03-27 02:34:10 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ec3d467f15 
							
						 
					 
					
						
						
							
							Migrate gt-hidden to tw-hidden ( #30046 )  
						
						... 
						
						
						
						We have to define this one in helpers.css because tailwind only
generates a single class but certain things rely on this being
double-class. Command ran:
```sh
perl -p -i -e 's#gt-hidden#tw-hidden#g' web_src/js/**/* templates/**/* models/**/* web_src/css/**/*
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2024-03-24 18:23:38 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							68ec9b4859 
							
						 
					 
					
						
						
							
							Migrate margin and padding helpers to tailwind ( #30043 )  
						
						... 
						
						
						
						This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g'   {web_src/js,templates,routers,services}/**/*
``` 
						
						
					 
					
						2024-03-24 17:42:49 +01:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							90a4f9a49e 
							
						 
					 
					
						
						
							
							Migrate gap helpers to tailwind ( #30034 )  
						
						... 
						
						
						
						Commands ran:
```sh
perl -p -i -e 's#gt-gap-0#tw-gap-0#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-1#tw-gap-0.5#g' web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-2#tw-gap-1#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-3#tw-gap-2#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-4#tw-gap-4#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-5#tw-gap-8#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-x-0#tw-gap-x-0#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-x-1#tw-gap-x-0.5#g' web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-x-2#tw-gap-x-1#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-x-3#tw-gap-x-2#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-x-4#tw-gap-x-4#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-x-5#tw-gap-x-8#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-y-0#tw-gap-y-0#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-y-1#tw-gap-y-0.5#g' web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-y-2#tw-gap-y-1#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-y-3#tw-gap-y-2#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-y-4#tw-gap-y-4#g'   web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-gap-y-5#tw-gap-y-8#g'   web_src/js/**/* templates/**/* 
						
						
					 
					
						2024-03-24 14:31:35 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f22fe4e194 
							
						 
					 
					
						
						
							
							Remove fomantic header module ( #30033 )  
						
						... 
						
						
						
						Likely still a few useless classes left, but I think I at least don't
have missed any.
---------
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2024-03-24 14:32:19 +01:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0bef9a2775 
							
						 
					 
					
						
						
							
							Replace all simple inline styles with tailwind ( #30032 )  
						
						... 
						
						
						
						These should be all simple inline styles that were left in the
templates.
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2024-03-23 20:11:15 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fabe01478a 
							
						 
					 
					
						
						
							
							Migrate font-weight helpers to tailwind ( #30027 )  
						
						... 
						
						
						
						Commands ran:
```sh
perl -p -i -e 's#gt-font-light#tw-font-light#g' web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-font-normal#tw-font-normal#g' web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-font-medium#tw-font-medium#g' web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-font-semibold#tw-font-semibold#g' web_src/js/**/* templates/**/*
perl -p -i -e 's#gt-font-bold#tw-font-bold#g' web_src/js/**/* templates/**/*
``` 
						
						
					 
					
						2024-03-23 18:45:11 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							04f9ad0568 
							
						 
					 
					
						
						
							
							Fix incorrect tailwind migration ( #30007 )  
						
						... 
						
						
						
						Fixes https://github.com/go-gitea/gitea/issues/30005 . Regression from
https://github.com/go-gitea/gitea/pull/29945 .
There was only once instance of `tw-content-center` before that PR, so I
just ran below command and reverted that one instance.
```sh
perl -p -i -e 's#tw-content-center#tw-items-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
``` 
						
						
					 
					
						2024-03-22 20:51:29 +01:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f88ad5424f 
							
						 
					 
					
						
						
							
							Replace 10 more gt- classes with tw- ( #29945 )  
						
						... 
						
						
						
						Likely the biggest change of the tailwind refactors. Only thing of note
is that `tw-flex-1` resolves to `flex: 1 1 0%` while our `gt-f1` was
`flex: 1 1 0`, I don't think it will make any difference. Commands I've
ran:
```sh
perl -p -i -e 's#gt-vm#tw-align-middle#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-fw#tw-flex-wrap#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-f1#tw-flex-1#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-fc#tw-flex-col#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-sb#tw-justify-between#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-je#tw-justify-end#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-jc#tw-justify-center#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-ac#tw-content-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
perl -p -i -e 's#gt-df#tw-flex#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
perl -p -i -e 's#gt-dib#tw-inline-block#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2024-03-22 13:45:10 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4c476fa41d 
							
						 
					 
					
						
						
							
							Remove unnecessary ".Link" usages ( #29909 )  
						
						... 
						
						
						
						In HTML, `?key=val` already means "use the current link with new query parameters" 
						
						
					 
					
						2024-03-20 13:56:42 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7e8c1c5ba1 
							
						 
					 
					
						
						
							
							Replace more gt- with tw-, update frontend docs ( #29595 )  
						
						... 
						
						
						
						Tested a few things, all working fine. Not sure if the chinese machine
translation is good.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2024-03-05 05:29:32 +00:00 
						 
				 
			
				
					
						
							
							
								KN4CK3R 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c337ff0ec7 
							
						 
					 
					
						
						
							
							Add user blocking ( #29028 )  
						
						... 
						
						
						
						Fixes  #17453 
This PR adds the abbility to block a user from a personal account or
organization to restrict how the blocked user can interact with the
blocker. The docs explain what's the consequence of blocking a user.
Screenshots:



---------
Co-authored-by: Lauris BH <lauris@nix.lv> 
					
						2024-03-04 08:16:03 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a2e90014ec 
							
						 
					 
					
						
						
							
							Replace some gt- classes with tw- ( #29570 )  
						
						... 
						
						
						
						Replace 18 `gt-` prefixes with `tw-` with perl replacement. I manually
checked them all with `rg` afterwards. 
						
						
					 
					
						2024-03-04 03:33:20 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9a8c90ee18 
							
						 
					 
					
						
						
							
							Use tailwind instead of gt-[wh]- helper classes ( #29423 )  
						
						... 
						
						
						
						Follow #29357  
- Replace `gt-w-*` -> `tw-w-*` and remove `gt-w-*`
- Replace `gt-h-*` -> `tw-h-*` and remove `gt-h-*` 
						
						
					 
					
						2024-02-27 14:31:41 +00:00 
						 
				 
			
				
					
						
							
							
								Jimmy Praet 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2e33671f2c 
							
						 
					 
					
						
						
							
							Add attachment support for code review comments ( #29220 )  
						
						... 
						
						
						
						Fixes  #27960 , #24411 , #12183 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
					
						2024-02-25 06:00:55 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c9d0e63c20 
							
						 
					 
					
						
						
							
							Remove unnecessary "Str2html" modifier from templates ( #29319 )  
						
						... 
						
						
						
						Follow #29165  
						
						
					 
					
						2024-02-22 18:05:47 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							39f8ab591c 
							
						 
					 
					
						
						
							
							Clean up diff header css and reduce global textarea min-height ( #29232 )  
						
						... 
						
						
						
						1. Tweak diff header and remove a numbe of unneeded CSS for it:
Before:
<img width="433" alt="Screenshot 2024-02-18 at 01 08 09"
src="https://github.com/go-gitea/gitea/assets/115237/d8b377c0-57bc-44d5-bb57-a582c7d4b3b4 ">
After:
<img width="463" alt="Screenshot 2024-02-18 at 01 07 56"
src="https://github.com/go-gitea/gitea/assets/115237/d08c17e7-5b86-4d07-81da-6371f4754325 ">
3. Reduce height of review textarea and also reduce fomantic's CSS from
12em to 8em. Now fits better on my screen:
<img width="1352" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/5c658d13-295e-4929-94da-13ade888020d ">
---------
Co-authored-by: delvh <dev.lh@web.de> 
						
						
					 
					
						2024-02-18 14:51:21 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							34a0684397 
							
						 
					 
					
						
						
							
							Improve CSS helper naming ( #28769 )  
						
						... 
						
						
						
						* `gt-w-100` => `gt-w-full` to match tailwind
* clarify `gt-hidden` priority 
						
						
					 
					
						2024-01-12 20:28:01 +08:00 
						 
				 
			
				
					
						
							
							
								sebastian-sauer 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e31c6cfe6e 
							
						 
					 
					
						
						
							
							Fix Show/hide filetree button on small displays ( #27881 )  
						
						... 
						
						
						
						the gt-df's display:flex !important did override the display:none on small displays
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2023-11-17 18:35:51 +00:00 
						 
				 
			
				
					
						
							
							
								sebastian-sauer 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							49dddd87b1 
							
						 
					 
					
						
						
							
							Improve PR diff view on mobile ( #27883 )  
						
						... 
						
						
						
						1. Show diff stats only on large screens
these are already shown in tabs, so no need for this duplicate
information on small screens


2. Hide viewed files information on small screens
Github does the same and this gives us more free space on small screens


3. Review bar now doesn't wrap so we don't need the 77px even on very
small screens
(the sticky headers are still working)
 
						
						
					 
					
						2023-11-16 11:58:53 +08:00 
						 
				 
			
				
					
						
							
							
								sebastian-sauer 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							37a7c551d4 
							
						 
					 
					
						
						
							
							Show correct commit sha when viewing single commit diff ( #27916 )  
						
						... 
						
						
						
						Show the correct sha when viewing a single commit.
 
						
						
					 
					
						2023-11-06 00:39:32 +01:00 
						 
				 
			
				
					
						
							
							
								Earl Warren 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c46080bc9d 
							
						 
					 
					
						
						
							
							Remove "tabindex" from some form buttons ( #27892 )  
						
						... 
						
						
						
						Remove the "tabindex" from some form buttons on the "diff box" / "issue view content" page, let the browser use the default tab order.
---------
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
						
					 
					
						2023-11-03 14:40:48 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							572f0963ed 
							
						 
					 
					
						
						
							
							Only show diff file tree when more than one file changed ( #27775 )  
						
						... 
						
						
						
						When 0 or 1 files changed in a diff, we don't need to show a file tree.
This behaviour matches GitHub. Single-file diff after this change, note
absence of button:
<img width="1234" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/3618438b-e655-42a3-989f-f299267b2b8b ">
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-10-25 05:09:18 +02:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							73b63d9311 
							
						 
					 
					
						
						
							
							Replace ajax with fetch, improve image diff ( #27267 )  
						
						... 
						
						
						
						1. Dropzone attachment removal, pretty simple replacement
2. Image diff: The previous code fetched every image twice, once via
`img[src]` and once via `$.ajax`. Now it's only fetched once and a
second time only when necessary. The image diff code was partially
rewritten.
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-10-11 12:34:21 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1f00bc44b2 
							
						 
					 
					
						
						
							
							Fix review UI ( #27322 )  
						
						... 
						
						
						
						Close  #26730 
1. The `diff-detail-box` was abused, it shouldn't be used for
"DiffFileList/DiffFileTree".
2. Fix the sticky position for various screens.


 
					
						2023-09-28 10:00:26 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							93bd4351bf 
							
						 
					 
					
						
						
							
							Fix more "locale" usages ( #27259 )  
						
						
						
						
					 
					
						2023-09-25 20:42:40 +08:00 
						 
				 
			
				
					
						
							
							
								delvh 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7960ba7e2b 
							
						 
					 
					
						
						
							
							Always use ctx.Locale.Tr inside templates ( #27231 )  
						
						
						
						
					 
					
						2023-09-25 08:56:50 +00:00