Skip to content

Commit c09d0b4

Browse files
authored
Fix loading state regression in markup content (#25349)
Fix regressions from #25219: Math before and after: <img width="630" alt="Screenshot 2023-06-18 at 16 00 52" src="https://github.com/go-gitea/gitea/assets/115237/f2a01e4b-31ca-407c-8fc3-f0aec569b48e"> <img width="680" alt="Screenshot 2023-06-18 at 16 03 44" src="https://github.com/go-gitea/gitea/assets/115237/faab8e39-f088-45ab-b460-15fc3654c99d"> Mermain before and after: <img width="810" alt="Screenshot 2023-06-18 at 15 58 56" src="https://github.com/go-gitea/gitea/assets/115237/d8c24e81-4702-4e17-b791-7dffe090c068"> <img width="786" alt="Screenshot 2023-06-18 at 15 58 37" src="https://github.com/go-gitea/gitea/assets/115237/3a268e10-c071-410d-a66e-8c4427d1d61c">
1 parent a1c5057 commit c09d0b4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

web_src/css/modules/animations.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
position: absolute;
1919
display: block;
2020
height: 4rem;
21-
max-height: 50%;
2221
aspect-ratio: 1 / 1;
2322
left: 50%;
2423
top: 50%;
24+
max-height: 100%;
25+
max-width: 100%;
2526
transform: translate(-50%, -50%);
2627
animation: isloadingspin 500ms infinite linear;
2728
border-width: 4px;
@@ -40,6 +41,15 @@
4041
height: var(--height-loading);
4142
}
4243

44+
.markup .is-loading > * {
45+
visibility: hidden;
46+
}
47+
48+
.markup .is-loading {
49+
color: transparent;
50+
background: transparent;
51+
}
52+
4353
/* TODO: not needed, use "is-loading small-loading-icon" instead */
4454
.btn-octicon.is-loading::after {
4555
border-width: 2px;

0 commit comments

Comments
 (0)