mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-30 12:21:06 +00:00
d42015e6eb
This PR fixes some ui problems as mentioned in the two issues below. 1. Long file path has no word break ## Before <img width="1357" alt="截屏2023-03-17 17 49 43" src="https://user-images.githubusercontent.com/17645053/225873491-27c7bf9a-d5d5-4065-9e4a-ff228e935abf.png"> ## After <img width="1248" alt="截屏2023-03-17 17 51 22" src="https://user-images.githubusercontent.com/17645053/225873562-93b87af7-9c83-43f8-aa0d-36a9174d25ac.png"> on mobile <img width="408" alt="截屏2023-03-17 17 51 15" src="https://user-images.githubusercontent.com/17645053/225873554-1b8c8999-1dfc-4251-a7fc-20ecd3444cb0.png"> 2. Texts in labels ## Before <img width="1219" alt="截屏2023-03-17 17 49 24" src="https://user-images.githubusercontent.com/17645053/225873369-812b1b52-c104-4e32-988f-c3e55ad2f844.png"> ## After <img width="1259" alt="截屏2023-03-17 17 51 31" src="https://user-images.githubusercontent.com/17645053/225873317-9717fd2c-e9e1-4a00-a27d-6bdc5933c3ca.png"> with two labels <img width="1258" alt="截屏2023-03-17 17 51 53" src="https://user-images.githubusercontent.com/17645053/225873323-13198192-71de-472d-8e78-6fd86ddba3d9.png"> In explore and star pages <img width="896" alt="截屏2023-03-17 18 25 00" src="https://user-images.githubusercontent.com/17645053/225878962-9e26e3aa-cff0-451c-9133-19f4ad1507a4.png"> <img width="913" alt="截屏2023-03-17 18 25 09" src="https://user-images.githubusercontent.com/17645053/225878967-6adaa414-136e-43c2-87d0-7e46a0da112e.png"> 3. Long name repository on creating new fork page ## Before <img width="919" alt="截屏2023-03-17 17 50 01" src="https://user-images.githubusercontent.com/17645053/225873723-5c4ea137-3b51-4074-a458-ef442e330ddf.png"> ## After <img width="907" alt="截屏2023-03-17 17 50 37" src="https://user-images.githubusercontent.com/17645053/225873772-fc4a52c3-49c6-4ca6-903d-a13707f2a98b.png"> <img width="383" alt="截屏2023-03-17 17 50 48" src="https://user-images.githubusercontent.com/17645053/225873779-6de1dfde-5c05-4ae9-89e1-85c25b3a1682.png"> Closes #23535 Closes #23534
94 lines
1.7 KiB
CSS
94 lines
1.7 KiB
CSS
.explore .navbar {
|
|
justify-content: center;
|
|
margin-bottom: 15px !important;
|
|
background-color: var(--color-navbar) !important;
|
|
border-width: 1px !important;
|
|
}
|
|
|
|
.explore .navbar .svg {
|
|
width: 16px;
|
|
text-align: center;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.ui.repository.list .item {
|
|
padding-bottom: 1.5rem;
|
|
}
|
|
|
|
.ui.repository.list .item:not(:first-child) {
|
|
border-top: 1px solid var(--color-secondary);
|
|
padding-top: 1.5rem;
|
|
}
|
|
|
|
.ui.repository.list .item .ui.header {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.ui.repository.list .item .ui.header .name {
|
|
word-break: break-all;
|
|
}
|
|
|
|
.ui.repository.list .item .ui.header .metas {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.ui.repository.list .item .time {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.ui.repository.list .item .ui.tags {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.ui.repository.list .repo-title .labels {
|
|
word-break: normal;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ui.repository.branches .info {
|
|
font-size: 12px;
|
|
color: var(--color-text-light);
|
|
display: flex;
|
|
white-space: pre;
|
|
}
|
|
|
|
.ui.repository.branches .info .commit-message {
|
|
max-width: 72em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ui.repository.branches .overflow-visible {
|
|
overflow: visible;
|
|
}
|
|
|
|
/* fix alignment of PR popup in branches table */
|
|
.ui.repository.branches table .ui.popup {
|
|
text-align: left;
|
|
}
|
|
|
|
.ui.user.list .item {
|
|
padding-bottom: 25px;
|
|
display: flex;
|
|
}
|
|
|
|
.ui.user.list .item:not(:first-child) {
|
|
border-top: 1px solid var(--color-secondary);
|
|
padding-top: 25px;
|
|
}
|
|
|
|
.ui.user.list .item img.ui.avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.ui.user.list .item .description {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.ui.user.list .item .description .svg:not(:first-child) {
|
|
margin-left: 5px;
|
|
}
|