summaryrefslogtreecommitdiffstats
path: root/web_src
Commit message (Collapse)AuthorAgeFilesLines
* Replace v-html with v-text in search inputbox (#31966) (#31973) (#31975)Lunny Xiao2024-09-051-4/+2
| | | | | | | | | | Backport #31966, #31973 Cherry-pick 30da734f37f0bd60d13044374c1d5af54f2eb416, 74b1c589c6c1a4261556e1a1a868bbcb2964a5d3 Replace #31972 --------- Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com>
* fix the component of access token list not mounted (#31824) (#31868)sillyguodong2024-08-193-14/+21
|
* Fix overflowing content in action run log (#31842) (#31853)Giteabot2024-08-181-0/+1
| | | | | | | | | | | | | | | | | | | | | Backport #31842 by @Adrian-Hirt When a long line with characters such as dots is returned by a step in an action (e.g. by the output of the Ruby on Rails test runner), it overflows the log container, causing the page to scroll sideways (see first screenshot): ![before](https://github.com/user-attachments/assets/d71a8446-2c81-42d7-ad20-92514884365a) This PR adds the CSS `overflow-wrap: anywhere;` to the `.job-step-section .job-step-logs .job-log-line .log-msg` selector, which causes such lines to wrap as well (see second screenshot in which the line wraps nicely): ![after](https://github.com/user-attachments/assets/ba9abaec-dc0b-4fab-8129-b9341d4bf784) Co-authored-by: Adrian Hirt <13788379+Adrian-Hirt@users.noreply.github.com>
* Scroll images in project issues separately from the remaining issue (#31683) ↵Giteabot2024-08-132-2/+7
| | | | | | | | | | | | | | | (#31823) Backport #31683 by @SimonPistache As discussed in #31667 & #26561, when a card on a Project contains images, they can overflow the card on its containing column. This aims to fix this issue via snapping scrollbars. --- Issue #31667 is open to discussion as there should be room for improvement. Co-authored-by: Simon Priet <105607989+SimonPistache@users.noreply.github.com>
* Add `:focus-visible` style to buttons (#31799) (#31819)Giteabot2024-08-121-0/+4
| | | | | | | | | | | | | | | Backport #31799 by @silverwind Buttons now show a focus style via [`:focus-visible`](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible) when the browser deems the focus to be important, like for example when the button is focused via keyboard navigation. <img width="492" alt="Screenshot 2024-08-07 at 22 12 51" src="https://github.com/user-attachments/assets/060568b1-1599-4c56-bafb-b36ebb1bec35"> <img width="479" alt="image" src="https://github.com/user-attachments/assets/885f4e10-f496-47f0-8ae5-45827ded09f8"> Co-authored-by: silverwind <me@silverwind.io>
* bump vue-bar-graph (#31705) (#31753)techknowlogick2024-08-011-1/+1
| | | backport vue-bar-graph bump to remove gsap dep
* Fix "Filter by commit" Dropdown (#31695) (#31696)wxiaoguang2024-07-251-3/+6
| | | | A separate backport of #31695 for 1.22 Fix #31673
* Remove unneccessary uses of `word-break: break-all` (#31637) (#31652)Giteabot2024-07-182-2/+1
| | | | | | | | | | | | Backport #31637 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/31636 1. Issue sidebar topic is disussed in https://github.com/go-gitea/gitea/issues/31636 2. Org description already has `overflow-wrap: anywhere` to ensure no overflow. Co-authored-by: silverwind <me@silverwind.io>
* Fix avatar radius problem on the new issue page (#31506) (#31508)Giteabot2024-06-271-1/+1
| | | | | Backport #31506 by charles7668 Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
* Fix dropzone JS error when attachment is disabled (#31486)wxiaoguang2024-06-261-1/+3
| | | Fix #31485
* Fix overflow menu flickering on mobile (#31484) (#31488)Giteabot2024-06-261-0/+4
| | | | | Backport #31484 by brechtvl Co-authored-by: Brecht Van Lommel <brecht@blender.org>
* Fix poor table column width due to breaking words (#31473) (#31477)Giteabot2024-06-251-1/+5
| | | | | | Backport #31473 by brechtvl Co-authored-by: Brecht Van Lommel <brecht@blender.org> Co-authored-by: silverwind <me@silverwind.io>
* Switch to "Write" tab when edit comment again (#31445) (#31461)Giteabot2024-06-222-12/+17
| | | | | | | Backport #31445 by wxiaoguang Fix #19031 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix labels and projects menu overflow on issue page (#31435) (#31439)Giteabot2024-06-201-5/+5
| | | | | | | | | Backport #31435 by brechtvl It was correct only on the new issue page. Resolves #31415 Co-authored-by: Brecht Van Lommel <brecht@blender.org>
* Fix new issue/pr avatar (#31419) (#31424)Giteabot2024-06-191-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Backport #31419 by @silverwind The avatar on "New Issue" and "New Pull Request" pages was inconsistent. Removed the extra margin and the new CSS rules now use common parent `<form id="#new-issue">` because `.repository.new.issue` is not present on pull request page. Before: <img width="181" alt="Screenshot 2024-06-19 at 13 56 17" src="https://github.com/go-gitea/gitea/assets/115237/5270d352-db5b-45b3-9d06-4790c17ae9b4"> <img width="213" alt="Screenshot 2024-06-19 at 13 54 02" src="https://github.com/go-gitea/gitea/assets/115237/012f5607-aef0-4f48-90e3-8d4022480203"> After: <img width="195" alt="Screenshot 2024-06-19 at 13 54 16" src="https://github.com/go-gitea/gitea/assets/115237/e7590c66-3b28-4790-9970-33bd567eeb31"> <img width="212" alt="Screenshot 2024-06-19 at 13 54 22" src="https://github.com/go-gitea/gitea/assets/115237/8e1cfede-614c-4cea-9af2-ada6da7a7361"> Co-authored-by: silverwind <me@silverwind.io>
* Fix repo graph JS (#31377)wxiaoguang2024-06-141-3/+3
| | | | Fix #31376 Regression of #30395
* Fix line number widths (#31341) (#31343)Giteabot2024-06-132-8/+9
| | | | | | Backport #31341 by silverwind Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix navbar `+` menu flashing on page load (#31281) (#31342)Giteabot2024-06-124-12/+32
| | | | | | Backport #31281 by silverwind Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix line number width in code preview (#31307) (#31316)Giteabot2024-06-111-2/+0
| | | | | | | | | | | Backport #31307 by silverwind Line numbers were using some hacky CSS `width: 1%` that did nothing to the code rendering as far as I can tell but broken the inline preview in markup when line numbers are greater than 2 digits. Also I removed one duplicate `font-family` rule (it is set below in the `.lines-num, .lines-code` selector. Co-authored-by: silverwind <me@silverwind.io>
* Fix and clean up `ConfirmModal` (#31283) (#31291)Giteabot2024-06-075-15/+28
| | | | | | | | | | | | | | | | | Backport #31283 by @silverwind Bug: orange button color was removed in https://github.com/go-gitea/gitea/pull/30475, replaced with red Bug: translation text was not html-escaped Refactor: Replaced as much jQuery as possible, added useful `createElementFromHTML` Refactor: Remove colors checks that don't exist on `.link-action` <img width="381" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/5900bf6a-8a86-4a86-b368-0559cbfea66e"> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de>
* Optimize repo-list layout to enhance visual experience (#31272) (#31276)Giteabot2024-06-071-4/+0
| | | | | | | | | | | | | | | | Backport #31272 by @kerwin612 before: ![1717655078227](https://github.com/go-gitea/gitea/assets/3371163/4d564f96-c2f8-46b1-996f-6cc7abb940ef) ***The problem was that the icon and text were not on a horizontal line, and the horizontal was not centered;*** after: ![1717655094071](https://github.com/go-gitea/gitea/assets/3371163/b11797f6-05f8-486c-b5fd-df89d0cbdcfd) Co-authored-by: Kerwin Bryant <kerwin612@qq.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix Activity Page Contributors dropdown (#31264) (#31269)Giteabot2024-06-062-11/+11
| | | | | | | Backport #31264 by wxiaoguang Fix #31261 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix admin oauth2 custom URL settings (#31246) (#31247)Giteabot2024-06-041-12/+17
| | | | | | | Backport #31246 by wxiaoguang Fix #31244 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Make pasted "img" tag has the same behavior as markdown image (#31235) (#31243)Giteabot2024-06-041-1/+5
| | | | | | | | | | Backport #31235 by wxiaoguang Fix #31230 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Remove .segment from .project-column (#31204) (#31239)Giteabot2024-06-041-0/+1
| | | | | | | | | | Backport #31204 by @silverwind Using `.segment` on the project columns is a major abuse of that class, so remove it and instead set the border-radius directly on it. Fixes: https://github.com/go-gitea/gitea/issues/31129 Co-authored-by: silverwind <me@silverwind.io>
* Use vertical layout for multiple code expander buttons (#31122) (#31152)Giteabot2024-05-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #31122 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/31068 - Now it only does a single call to `GetExpandDirection` per line instead of multiples. - Exposed `data-expand-direction` to frontend so it can correctly size the buttons (it's a pain to do in tables). <img width="142" alt="Screenshot 2024-05-27 at 20 44 56" src="https://github.com/go-gitea/gitea/assets/115237/8b0b45a6-8e50-4081-8822-5e0775d8d941"> <img width="142" alt="Screenshot 2024-05-27 at 20 44 51" src="https://github.com/go-gitea/gitea/assets/115237/b7ba2c57-8f55-4e9f-9606-c96d16b77892"> <img width="132" alt="Screenshot 2024-05-27 at 20 44 46" src="https://github.com/go-gitea/gitea/assets/115237/0e838fb8-5e8c-4250-9843-a68b88d5418b"> <img width="80" alt="Screenshot 2024-05-27 at 20 44 33" src="https://github.com/go-gitea/gitea/assets/115237/da6c7f83-c160-4389-8ab2-889d0568cbe8"> <img width="80" alt="Screenshot 2024-05-27 at 20 44 26" src="https://github.com/go-gitea/gitea/assets/115237/cdb490b2-5040-484a-92e5-46fc5e37c199"> <img width="78" alt="Screenshot 2024-05-27 at 20 44 20" src="https://github.com/go-gitea/gitea/assets/115237/d2978ab0-764e-41ff-922c-25f8fe749f28"> Would backport as trivial enhancement. Co-authored-by: silverwind <me@silverwind.io>
* Improve mobile review ui (#31091) (#31136)Giteabot2024-05-285-107/+64
| | | | | | | | | | | | | | | | | | Backport #31091 by @silverwind 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"> Co-authored-by: silverwind <me@silverwind.io>
* Fix DashboardRepoList margin (#31121) (#31128)Giteabot2024-05-281-2/+0
| | | | | | | | | | Backport #31121 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/31115 <img width="476" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/ba508ba9-b02d-47c6-ad9f-495101c81330"> Co-authored-by: silverwind <me@silverwind.io>
* Prevent tab shifting, remove extra margin on fluid pages (#31090) (#31099)Giteabot2024-05-271-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #31090 by @silverwind 1. Extend concept of https://github.com/go-gitea/gitea/pull/29831 to all tabular menus, there were only three left that weren't already `<overflow-menu>`. <img width="634" alt="Screenshot 2024-05-27 at 00 42 16" src="https://github.com/go-gitea/gitea/assets/115237/d9a7e219-d05e-40a1-9e93-777f9a8a90dd"> <img width="965" alt="Screenshot 2024-05-27 at 00 29 32" src="https://github.com/go-gitea/gitea/assets/115237/e6ed71b1-11fb-4a74-9adb-af4524286cff"> 2. Remove extra padding on `fluid padded` container like for example PR diff view. The page margin is already correctly sized via `.ui.container`, so this was just extraneous padding that looked ugly. Before: <img width="1351" alt="Screenshot 2024-05-27 at 00 45 11" src="https://github.com/go-gitea/gitea/assets/115237/4b45fd11-b1b2-4fbb-a618-26eb22be9472"> After: <img width="1344" alt="Screenshot 2024-05-27 at 00 45 22" src="https://github.com/go-gitea/gitea/assets/115237/d09593eb-6c7f-45e7-85b6-f0050047004b"> 3. Replace `gt-word-break` with `tw-break-anywhere` in issue-title, fixing overflow. Before: <img width="1333" alt="Screenshot 2024-05-27 at 00 50 14" src="https://github.com/go-gitea/gitea/assets/115237/64d15d04-b456-401e-a972-df636965f0eb"> After: <img width="1316" alt="Screenshot 2024-05-27 at 00 50 26" src="https://github.com/go-gitea/gitea/assets/115237/ed1ce830-1408-414b-8263-eeaf773f52c8"> Co-authored-by: silverwind <me@silverwind.io>
* Fix border radius on hovered secondary menu (#31089) (#31097)Giteabot2024-05-271-1/+4
| | | | | | | | | | | | Backport #31089 by @silverwind Presumably a regression from https://github.com/go-gitea/gitea/pull/30325, these menus were showing a border radius on hover, which is fixed with this change. <img width="154" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/eafdc1c5-3cf5-48d1-86c4-21c58f92cfaf"> Co-authored-by: silverwind <me@silverwind.io>
* Change `--border-radius-circle` to `--border-radius-full` (#30936) (#31078)Giteabot2024-05-263-4/+4
|
* Fix project column title overflow (#31011) (#31025)Giteabot2024-05-201-8/+5
| | | | | Backport #31011 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix JS error when editing a merged PR's title (#30990) (#31001)Giteabot2024-05-171-1/+4
| | | | | | | Backport #30990 by @wxiaoguang Regression of Fix issue/PR title edit (#30858) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Restyle release list, fix branch dropdown (#30837) (#30968)Giteabot2024-05-131-27/+51
| | | | | | | | | | | | | | | | | | | Backport #30837 by @silverwind Fixes https://github.com/go-gitea/gitea/issues/30821 and restyles the release list. Desktop: <img width="1199" alt="Screenshot 2024-05-02 at 20 46 10" src="https://github.com/go-gitea/gitea/assets/115237/bee92423-d4a9-4b26-8301-3a1e09eef4cd"> Mobile: <img width="443" alt="Screenshot 2024-05-02 at 20 46 21" src="https://github.com/go-gitea/gitea/assets/115237/42ecbae5-bdb6-4b16-a0ee-9c64daede68d"> Co-authored-by: silverwind <me@silverwind.io>
* Fix file path width in repo non-homepage view (#30951) (#30952)Giteabot2024-05-121-0/+4
| | | | | | | | | | Backport #30951 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/30940 <img width="1310" alt="Screenshot 2024-05-11 at 20 48 41" src="https://github.com/go-gitea/gitea/assets/115237/f163dfd4-1299-421f-a99e-cd0c793e0e3d"> Co-authored-by: silverwind <me@silverwind.io>
* Fix some UI regressions for commit list (#30920) (#30937)Giteabot2024-05-102-5/+2
| | | | | | | | Backport #30920 by wxiaoguang Close #30919 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Check if reverse proxy is correctly configured (#30890) (#30935)Giteabot2024-05-104-4/+37
| | | | | | | | | Backport #30890 by wxiaoguang Follow #27011 Follow #30885 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Add missing menu active item background back (#30897) (#30907)Giteabot2024-05-081-0/+1
| | | | | Backport #30897 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix incorrect issue form (#30881) (#30904)Giteabot2024-05-081-16/+11
| | | | | Backport #30881 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix various problems around projects board view (#30696) (#30902)Giteabot2024-05-081-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #30696 by @lunny # The problem The previous implementation will start multiple POST requests from the frontend when moving a column and another bug is moving the default column will never be remembered in fact. # What's changed - [x] This PR will allow the default column to move to a non-first position - [x] And it also uses one request instead of multiple requests when moving the columns - [x] Use a star instead of a pin as the icon for setting the default column action - [x] Inserted new column will be append to the end - [x] Fix #30701 the newly added issue will be append to the end of the default column - [x] Fix when deleting a column, all issues in it will be displayed from UI but database records exist. - [x] Add a limitation for columns in a project to 20. So the sorting will not be overflow because it's int8. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix some UI problems (dropdown/container) (#30849) (#30871)Giteabot2024-05-066-22/+40
| | | | | | | | Backport #30849 by wxiaoguang Follow #30345 Follow #30547 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix some UI problems (install/checkbox) (#30854) (#30870)Giteabot2024-05-063-12/+12
| | | | | Backport #30854 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Have time.js use UTC-related getters/setters (#30857) (#30869)Giteabot2024-05-064-17/+22
| | | | | | Backport #30857 by kemzeb Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com> Co-authored-by: Sam Fisher <fisher@3echelon.local>
* Do not show monaco JS errors (#30862) (#30866)Giteabot2024-05-061-11/+20
| | | | | | | Backport #30862 by wxiaoguang Fix #30861 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix issue/PR title edit (#30858) (#30865)Giteabot2024-05-054-117/+112
| | | | | | | | Backport #30858 by wxiaoguang 1. "enter" doesn't work (I think it is the last enter support for #14843) 2. if a branch name contains something like `&`, then the branch selector doesn't update Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix JS error on pull request page (#30838) (#30841)Giteabot2024-05-031-0/+1
| | | | | | | | | Backport #30838 by silverwind Fix this error seen on PR page, regression from https://github.com/go-gitea/gitea/pull/30803: Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Improve repo button row layout (#30668) (#30839)Giteabot2024-05-022-12/+45
| | | | | | | | | | | | | | | | | | | | | | | Backport #30668 by @silverwind Since there is now a second `<input>` in the repo buttons, we can make a better-looking layout with no empty space, except on mobile. Also I fixed one bug with focus border on clone panel. ## Large <img width="1163" alt="Screenshot 2024-04-23 at 22 25 22" src="https://github.com/go-gitea/gitea/assets/115237/8135a572-aa67-4672-ad49-b76b06890b52"> ## Medium <img width="870" alt="Screenshot 2024-04-23 at 22 25 34" src="https://github.com/go-gitea/gitea/assets/115237/9e93f61c-3315-4a78-8328-8cefad5b50fa"> ## Mobile <img width="416" alt="Screenshot 2024-04-23 at 22 25 52" src="https://github.com/go-gitea/gitea/assets/115237/859e341f-807a-48e6-8bcf-31715963216c"> Co-authored-by: silverwind <me@silverwind.io>
* Add hover outline to heatmap squares (#30828) (#30832)Giteabot2024-05-021-0/+4
| | | | | | | | | | | | | | Backport #30828 by @silverwind Makes it easier to use because you see which square is currently hovered: <img width="314" alt="Screenshot 2024-05-02 at 15 38 20" src="https://github.com/go-gitea/gitea/assets/115237/3a15dad1-2259-4f28-9fae-5cf6ad3d8798"> I did try a `scoped` style for this, but that did not work for some reason. Co-authored-by: silverwind <me@silverwind.io>
* Improve context popup rendering (#30824) (#30829)Giteabot2024-05-022-8/+15
| | | | | | | | | | | | | | | | | | Backport #30824 by @silverwind Before, lot of empty space when no labels or body: <img width="281" alt="Screenshot 2024-05-02 at 13 51 29" src="https://github.com/go-gitea/gitea/assets/115237/8a980ccd-d53c-43a3-a059-dc8c614621e1"> After, empty space collapsed: <img width="306" alt="Screenshot 2024-05-02 at 13 51 16" src="https://github.com/go-gitea/gitea/assets/115237/8d9c154d-5de1-43d0-8536-afd9194d99b3"> All `<p>` (unsuitable) and `<small>` (discouraged in favor of css) tags are removed. Co-authored-by: silverwind <me@silverwind.io>
* Fix activity heat map padding & locale (#30823) (#30827)Giteabot2024-05-022-12/+17
| | | | | | | | Backport #30823 by wxiaoguang Fix #30808 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>