mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +00:00
Refactor "shortsha" (#26877)
The old code used complex `if` blocks and strange HTML layouts. <details>  </details> This PR refactors the template code and remove legacy CSS styles. The UI doesn't change much.  
This commit is contained in:
parent
f1fe102c8c
commit
fba7150ca9
6 changed files with 16 additions and 93 deletions
|
@ -1308,9 +1308,13 @@ img.ui.avatar,
|
|||
.ui .sha.label {
|
||||
font-family: var(--fonts-monospace);
|
||||
font-size: 13px;
|
||||
padding: 6px 10px 4px;
|
||||
font-weight: var(--font-weight-normal);
|
||||
margin: 0 6px;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.ui .sha.label .shortsha {
|
||||
display: inline-block; /* not sure whether it is still needed */
|
||||
}
|
||||
|
||||
.ui .button.copy-commit-sha {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue