Generating
+Generating
) : (Generate a new image using Transloadit AI
)} diff --git a/packages/@uppy/image-generator/src/style.scss b/packages/@uppy/image-generator/src/style.scss index 41a6f1034..098a3fa12 100644 --- a/packages/@uppy/image-generator/src/style.scss +++ b/packages/@uppy/image-generator/src/style.scss @@ -8,6 +8,13 @@ width: 100%; display: flex; flex-direction: column; + + // Ensure the footer sticks to the bottom when using uppy-ProviderBrowser-footer + .uppy-ProviderBrowser-footer { + position: sticky; + bottom: 0; + z-index: 2; + } } .uppy-ImageGenerator-prompt { @@ -65,6 +72,12 @@ padding: 16px; flex: 1; + &.uppy-ImageGenerator-grid--single { + grid-template-columns: 1fr; + max-width: 400px; + margin: 0 auto; + } + li { margin: 0; padding: 0; @@ -89,8 +102,10 @@ img { width: 100%; - height: 150px; + height: 50%; + min-height: 200px; object-fit: cover; + border-radius: 6px; } } } @@ -110,5 +125,24 @@ p { font-size: 14px; color: $gray-600; + + &.uppy-ImageGenerator-generating { + background: linear-gradient(90deg, $gray-400, $gray-600, $gray-400); + background-size: 200% 100%; + background-clip: text; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + animation: uppy-gradient-slide 2s ease-in-out infinite; + } + } +} + +@keyframes uppy-gradient-slide { + 0% { + background-position: -200% 0; + } + + 100% { + background-position: 200% 0; } }