@@ -104,8 +104,8 @@ let make = (
diff --git a/src/components/AvatarGenerator.css b/src/components/AvatarGenerator.css
index 7fd0986..6c355a7 100644
--- a/src/components/AvatarGenerator.css
+++ b/src/components/AvatarGenerator.css
@@ -10,6 +10,7 @@
justify-content: space-between;
align-items: center;
padding-top: 110px;
+ padding-bottom: 32px;
}
.AvatarGenerator-pngContainer {
@@ -39,6 +40,18 @@
top: -75px;
}
+/* On small screens the styler list is a long scroll; keep the avatar
+ preview pinned so changes stay visible (community request, #34) */
+@media (max-width: 767px) {
+ .AvatarGenerator-avatar {
+ position: sticky;
+ top: 20px;
+ margin-top: -185px;
+ margin-bottom: 35px;
+ z-index: 1;
+ }
+}
+
.AvatarGenerator-faceFeature {
position: absolute;
top: 0;
@@ -75,31 +88,3 @@
}
}
-.AvatarGenerator-footer {
- width: 100%;
- background-color: #f9fafc;
- padding-top: 28px;
- padding-bottom: 28px;
- border-radius: 8px;
- text-align: center;
- margin-top: 24px;
-}
-
-@media (min-width: 768px) {
- .AvatarGenerator-footerTop {
- margin-right: 48px;
- margin-left: 24px;
- }
-
- .AvatarGenerator-footer {
- width: 100%;
- background-color: #f9fafc;
- padding-top: 28px;
- padding-bottom: 28px;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 8px;
- margin-top: 32px;
- }
-}
diff --git a/src/components/AvatarGenerator.res b/src/components/AvatarGenerator.res
index 5956865..1801a5b 100644
--- a/src/components/AvatarGenerator.res
+++ b/src/components/AvatarGenerator.res
@@ -97,16 +97,5 @@ let make = (~randomize, ~settings: array
, ~onChange, ~onExport) =
-
-

-
- {React.string("Want to make your own?")}
-
-
- {React.string("Get the Sketch file on Gumroad.")}
-
-
-
-
}
diff --git a/src/components/SvgLoader.res b/src/components/SvgLoader.res
index c819567..b2e535a 100644
--- a/src/components/SvgLoader.res
+++ b/src/components/SvgLoader.res
@@ -105,8 +105,8 @@ let getBuncurls = (fill, size) =>
`