Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Try to add a positioning hack to fix iPad

Scott Petrovic653a9698f5f3
diff --git a/src/lib/processes/animations-listing/props/props.css b/src/lib/processes/animations-listing/props/props.css
index 17d8c8d..43d8bf8 100644
--- a/src/lib/processes/animations-listing/props/props.css
+++ b/src/lib/processes/animations-listing/props/props.css
@@ -141,6 +141,7 @@
z-index: 20;
width: 16rem;
max-height: calc(100vh - var(--navigation-height) - 17rem);
+ max-height: calc(100dvh - var(--navigation-height) - 17rem); /* dvh accounts for iPad/iOS browser toolbars; 100vh line above is the fallback */
overflow-y: auto;
padding: 0.5rem;
border: 1px solid var(--bg-tertiary);
diff --git a/src/retarget/retarget.css b/src/retarget/retarget.css
index c48b2f1..291002f 100644
--- a/src/retarget/retarget.css
+++ b/src/retarget/retarget.css
@@ -25,6 +25,7 @@ h1 {
#source-bones-list, #target-bones-list {
height: calc(100vh - 490px); /* Hard-code the height to keep the UI consistent when filtering the lists */
+ height: calc(100dvh - 490px); /* dvh accounts for iPad/iOS browser toolbars; 100vh line above is the fallback */
overflow-y: auto;
background-color: var(--bg-alternate);
border-radius: 0.25rem;
@@ -116,11 +117,13 @@ h1 {
#animations-items {
max-height: calc(100vh - 17rem);
+ max-height: calc(100dvh - 17rem); /* dvh accounts for iPad/iOS browser toolbars; 100vh line above is the fallback */
}
#animations-listing.has-arm-extension #animations-items {
/* reserve room for the arm extension controls so the download row stays on screen */
max-height: calc(100vh - 25rem);
+ max-height: calc(100dvh - 25rem); /* dvh accounts for iPad/iOS browser toolbars; 100vh line above is the fallback */
}
#auto-bone-map-match {
diff --git a/src/styles.css b/src/styles.css
index 917ce24..8f204d3 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -556,6 +556,7 @@ option {
#animations-items{
max-height: calc(100vh - 22rem);
+ max-height: calc(100dvh - 22rem); /* dvh accounts for iPad/iOS browser toolbars; 100vh line above is the fallback */
display: inline-flex;
overflow: auto;;
flex-direction: row;
@@ -571,6 +572,7 @@ option {
#animations-items.create-page {
/* create page has a tile at the top so we need this listing grid slightly smaller */
max-height: calc(100vh - 30rem);
+ max-height: calc(100dvh - 30rem); /* dvh accounts for iPad/iOS browser toolbars; 100vh line above is the fallback */
}
#animations-items div {