Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

have each animation in listing be two lines

Scott Petrovic4f1316296660
diff --git a/src/lib/processes/animations-listing/AnimationSearch.ts b/src/lib/processes/animations-listing/AnimationSearch.ts
index 9d34db8..8896b1a 100644
--- a/src/lib/processes/animations-listing/AnimationSearch.ts
+++ b/src/lib/processes/animations-listing/AnimationSearch.ts
@@ -449,7 +449,7 @@ export class AnimationSearch extends EventTarget {
<label class="styled-checkbox anim-row-checkbox">
<input type="checkbox" name="${animation_clip.name}" value="${animation_clip.id}" ${checked_attribute}>
- <span class="anim-preview-label">${this.animation_name_clean(animation_clip.name)}</span>
+ <span class="anim-preview-label" title="${this.animation_name_clean(animation_clip.name)}">${this.animation_name_clean(animation_clip.name)}</span>
</label>
<button
diff --git a/src/styles.css b/src/styles.css
index 2a2e15c..d469ac7 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -738,8 +738,11 @@ option {
.anim-row-checkbox .anim-preview-label {
overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ line-clamp: 2;
+ overflow-wrap: anywhere;
}
.anim-mirror-segmented {