Fix dual-layer text alignment: use clip wrapper for proper text centering
Build and Release / build (push) Has been cancelled
Build and Release / build (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
c07c0fbdf7
commit
2d1b6de51a
+17
-8
@@ -676,21 +676,25 @@ body,
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.progress-size-text-filled {
|
||||
.progress-size-text-clip {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.progress-size-text-clip .progress-size-text-filled {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: #0a0f1a;
|
||||
white-space: nowrap;
|
||||
z-index: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.progress-size-small {
|
||||
@@ -698,7 +702,7 @@ body,
|
||||
}
|
||||
|
||||
.progress-size-small .progress-size-text,
|
||||
.progress-size-small .progress-size-text-filled {
|
||||
.progress-size-small .progress-size-text-clip .progress-size-text-filled {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
@@ -737,19 +741,24 @@ body,
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.progress-inline-text-filled {
|
||||
.progress-inline-text-clip {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.progress-inline-text-clip .progress-inline-text-filled {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: #0a0f1a;
|
||||
z-index: 2;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.progress-inline-small {
|
||||
@@ -757,7 +766,7 @@ body,
|
||||
}
|
||||
|
||||
.progress-inline-small .progress-inline-text,
|
||||
.progress-inline-small .progress-inline-text-filled {
|
||||
.progress-inline-small .progress-inline-text-clip .progress-inline-text-filled {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user