Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00
forgejo/web_src/css
Hester Gong a9cceb0597
Fix long project name display in issue list and in related dropdown (#23653)
This PR is to fix the second problem mentioned in #23625, along with the
long texts problem in `issue-item-bottom-row` of `issuelist.tmpl`

Main changes are:
1. Add `max-width` to the search dropdowns in issue list and make the
possible long texts inside to show ellipsis if texts are long
2. Adjust the conditions in
[issuelist.tmpl](1d35fa0e78/templates/shared/issuelist.tmpl (L146-L167))
to fix the problem as mentioned by the
[comment](https://github.com/go-gitea/gitea/issues/23625#issuecomment-1479281060)
3. Use `word-break: break-word;` in `issue-item-bottom-row` to break the
possible long texts.

After the PR
issuelist in repo (similar for pr list):
<img width="366" alt="截屏2023-03-23 17 42 40"
src="https://user-images.githubusercontent.com/17645053/227163953-93e9adbd-5785-4c16-b538-9db901787775.png">

dropdowns with long name (Here take reference from github to deal with
the long names cases: show ellipsis with no title, because all these
options are clickable, and it might not be necessary to add titles to
them ):

<img width="370" alt="截屏2023-03-23 17 43 50"
src="https://user-images.githubusercontent.com/17645053/227164215-df6fcaaa-9fee-4256-a57c-053fbcffafbb.png">

<img width="365" alt="截屏2023-03-23 17 43 56"
src="https://user-images.githubusercontent.com/17645053/227164227-9c99abcd-f410-4e07-b5b8-cbce764eedcd.png">

issue page (similar for pr page):
<img width="374" alt="截屏2023-03-23 17 45 37"
src="https://user-images.githubusercontent.com/17645053/227164668-654a8188-dac8-4bbf-a6e3-f3768a644a1b.png">

on PC:
<img width="1412" alt="截屏2023-03-23 17 47 20"
src="https://user-images.githubusercontent.com/17645053/227166694-e7bcc6e5-9667-4cef-9fbf-db85640a2c6c.png">

<img width="1433" alt="截屏2023-03-23 17 46 40"
src="https://user-images.githubusercontent.com/17645053/227165182-4e2a5d19-74bc-4c66-b73c-23cbca176ffe.png">
2023-03-24 15:11:23 +08:00
..
chroma Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
code Fix some broken css (#23560) 2023-03-18 17:53:12 -04:00
codemirror Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
console Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
features Set opaque background on markup and images (#23578) 2023-03-21 17:38:04 -04:00
markup Set opaque background on markup and images (#23578) 2023-03-21 17:38:04 -04:00
modules Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
shared Fix long project name display in issue list and in related dropdown (#23653) 2023-03-24 15:11:23 +08:00
standalone Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
themes Update mini-css-extract-plugin, remove postcss (#23520) 2023-03-16 15:06:53 -04:00
admin.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
animations.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
base.css Improve <SvgIcon> to make it output svg node and optimize performance (#23570) 2023-03-23 11:24:16 +08:00
dashboard.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
editor.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
explore.css Fix long name ui issues and label ui issue (#23541) 2023-03-18 17:07:59 +01:00
font_i18n.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
form.css Fix long name ui issues and label ui issue (#23541) 2023-03-18 17:07:59 +01:00
helpers.css Fix long project name display in issue list and in related dropdown (#23653) 2023-03-24 15:11:23 +08:00
home.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
index.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
install.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
organization.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
package.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
repository.css Fix long project name display in issue list and in related dropdown (#23653) 2023-03-24 15:11:23 +08:00
review.css Fix diff detail buttons wrapping, use tippy for review box (#23271) 2023-03-17 12:24:00 -05:00
runner.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
svg.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
tribute.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
user.css Remove conflicting CSS rules on notifications, improve notifications table (#23565) 2023-03-21 15:11:25 -04:00