Skip to content

Commit bbf14b0

Browse files
committed
small fix for video previews to look better with 3 columns
1 parent ba62c30 commit bbf14b0

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/lib/processes/animations-listing/StepAnimationsListing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export class StepAnimationsListing extends EventTarget {
229229

230230
private update_filtered_animation_listing_ui (): void {
231231
const animation_length_string: string = this.animation_search?.filtered_animations().length.toString() ?? '0'
232-
this.ui.dom_animations_listing_count.innerHTML = animation_length_string
232+
this.ui.dom_animations_listing_count.innerHTML = animation_length_string + ' animations'
233233
}
234234

235235
private apply_hip_bone_offset (animation_clips: AnimationClip[]): void {

src/styles.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ h1, h2, h3, h4, h5, h6, input, button, select {
9494
margin-bottom: 0.5rem;
9595
}
9696
#animation-listing-count {
97-
font-size: 90%;
9897
position: absolute;
9998
right: 3rem;
10099
top: 5rem;
100+
color: var(--text-alternate)
101101
}
102102

103103
/* indicator on download buton with how many are selected */
@@ -178,12 +178,13 @@ button.secondary-button.play
178178
border-radius: 0;
179179
box-shadow: none;
180180
margin-right: 0;
181-
border: 1px solid transparent;
181+
border: 1px solid var(--bg-tertiary);
182+
transform: scale(1.0);
182183
}
183184
button.secondary-button.play:hover {
184-
transform: scale(1.0);
185-
border: 1px solid var(--text-alternate);
185+
border: 1px solid var(--text-primary);
186186
transition: all 0.4s ease;
187+
transform: scale(1.0);
187188
}
188189

189190
button, .button {
@@ -204,7 +205,6 @@ button:hover, .button:hover {
204205
}
205206

206207
button:active, .button:active {
207-
208208
transform: scale(0.98);
209209
}
210210

@@ -341,7 +341,7 @@ option {
341341
gap: 0.25rem;
342342
flex-wrap: wrap;
343343
overflow-x: hidden;
344-
width: 23.7rem; /* createss 3 column of animation items */
344+
width: 24rem; /* creates 3 column of animation items */
345345
}
346346

347347
#animations-items div {
@@ -362,13 +362,15 @@ option {
362362
justify-content: space-between;
363363
padding: 0;
364364

365+
transition: box-shadow 0.2s ease-in-out;
366+
365367
/* specify dimensions helps grid layout without jumbling elements */
366-
width: 102px;
368+
width: 103px;
367369
height: 160px;
368370
}
369371

370372
.anim-preview-label {
371-
font-size: 75%;
373+
font-size: 90%;
372374
cursor: pointer;
373375
line-height: 110%;
374376
}

0 commit comments

Comments
 (0)