Skip to content

Commit efb240a

Browse files
authored
fix monsterize layout - width of columns (#6428)
fix monsterize layout - width of columns is now same for monsterized/regular char columns fixes #6424
1 parent ff6e6ed commit efb240a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

torchci/components/GroupJobConclusion.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ function GroupConclusionContent({
8787
if (conclusion !== GroupedJobStatus.Failure || !monsterFailures) {
8888
return (
8989
<span
90-
className={
90+
className={`${styles.conclusion} ${
9191
isClassified ? styles["classified"] : styles[conclusion ?? "none"]
92-
}
92+
}`}
9393
onDoubleClick={toggleExpanded}
9494
style={{
9595
border: "1px solid gainsboro",
@@ -143,7 +143,7 @@ function GroupConclusionContent({
143143

144144
return (
145145
<span
146-
className={styles.monster_with_count}
146+
className={`${styles.monster_with_count} ${styles.conclusion}`}
147147
onDoubleClick={toggleExpanded}
148148
title={`${allMonsters.length} unique failure ${
149149
allMonsters.length === 1 ? "type" : "types"

torchci/components/JobConclusion.module.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
font-family: monospace;
33
font-size: 1rem;
44
font-weight: bold;
5+
display: inline-block;
6+
width: 14px;
7+
text-align: center;
58
}
69

710
.classified {
@@ -23,7 +26,7 @@
2326
background-size: 152px 426px; /* total size of the spritesheet (downscaled 1.5x) */
2427
display: inline-block;
2528
vertical-align: middle;
26-
margin-left: 2px;
29+
margin-left: 0;
2730
image-rendering: pixelated;
2831
}
2932

0 commit comments

Comments
 (0)