Skip to content

Commit 60c2b46

Browse files
committed
Align tool badge and character filenames with header display rules - PR_26151_001-tool-badge-character-name-alignment
1 parent 96cecad commit 60c2b46

70 files changed

Lines changed: 154 additions & 29 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

GameFoundryStudio/assets/css/gamefoundrystudio.css

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,10 @@ details.vertical-accordion[open] summary:after {
586586
border-radius: 16px;
587587
background: var(--panel);
588588
box-shadow: 0 14px 40px var(--shadow);
589-
overflow: hidden
589+
overflow: hidden;
590+
display: flex;
591+
align-items: center;
592+
gap: 12px
590593
}
591594

592595
.tool-display-mode summary {
@@ -598,14 +601,16 @@ details.vertical-accordion[open] summary:after {
598601
padding: 10px;
599602
display: flex;
600603
align-items: center;
601-
justify-content: center
604+
justify-content: center;
605+
gap: 10px;
606+
flex: 0 0 auto
602607
}
603608

604609
.tool-display-mode summary::-webkit-details-marker {
605610
display: none
606611
}
607612

608-
.tool-display-mode__icon {
613+
.tool-display-mode__badge {
609614
width: 42px;
610615
height: 42px;
611616
object-fit: cover;
@@ -616,16 +621,31 @@ details.vertical-accordion[open] summary:after {
616621
}
617622

618623
.tool-display-mode__body {
619-
display: grid;
620-
place-items: center;
621-
padding: 0 14px 14px
624+
display: flex;
625+
align-items: center;
626+
gap: 12px;
627+
min-width: 0;
628+
padding: 10px 14px 10px 0
622629
}
623630

624631
.tool-display-mode__character {
625-
width: min(150px, 44%);
626-
height: auto;
632+
width: 42px;
633+
height: 42px;
627634
object-fit: contain;
628-
display: block
635+
display: block;
636+
flex: 0 0 auto
637+
}
638+
639+
.tool-display-mode__fullscreen-name {
640+
display: none;
641+
white-space: nowrap
642+
}
643+
644+
.tool-display-mode__description {
645+
color: var(--muted);
646+
overflow: hidden;
647+
text-overflow: ellipsis;
648+
white-space: nowrap
629649
}
630650

631651
.tool-grid {
@@ -720,7 +740,12 @@ body.tool-focus-mode .tool-display-mode {
720740
margin: 0;
721741
border-color: var(--meaning-border, var(--line));
722742
background: var(--panel);
723-
box-shadow: 0 18px 60px var(--shadow)
743+
box-shadow: 0 18px 60px var(--shadow);
744+
justify-content: center
745+
}
746+
747+
body.tool-focus-mode .tool-display-mode__fullscreen-name {
748+
display: inline
724749
}
725750

726751
body.tool-focus-mode .tool-column,
88.7 KB
78.1 KB
66.1 KB
98.6 KB
76.4 KB
78.1 KB
94.4 KB
110 KB
93.4 KB

0 commit comments

Comments
 (0)