Skip to content

Commit 98245b0

Browse files
authored
Fix bottom margin when rendering in mobile (#3043)
## Summary: Fix bottom margin when rendering in mobile | Before | After | | ------ | ----- | | <img width="382" height="780" alt="image" src="https://github.com/user-attachments/assets/cdc38d5d-779e-4b13-a66b-3135abfb7cb4" /> | <img width="382" height="780" alt="image" src="https://github.com/user-attachments/assets/46260cd8-762c-425e-81f4-722c649a831f" /> | Issue: LEMS-3517 ## Test plan: 1. Navigate to an exercise with image like `internal-courses/test-everything/test-everything-1/te-image/e/image--numeric-input-exercise` and confirm that the bottom of the perseus renderer has space 2. Check other exercise and make sure other rendered items has proper spacing Author: ivyolamit Reviewers: catandthemachines, nishasy Required Reviewers: Approved By: catandthemachines, nishasy Checks: ⏭️ 1 check has been skipped, ✅ 10 checks were successful Pull Request URL: #3043
1 parent f37b360 commit 98245b0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/tall-berries-visit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@khanacademy/perseus": patch
3+
---
4+
5+
Fix bottom margin when rendering in mobile

packages/perseus/src/styles/styles.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@
283283
.framework-perseus.perseus-mobile
284284
.perseus-renderer
285285
> .paragraph:not(:first-child) {
286-
margin-top: 32px;
286+
margin-top: var(--wb-sizing-size_240);
287+
margin-bottom: var(--wb-sizing-size_240);
287288
}
288289
.framework-perseus.perseus-mobile .perseus-renderer > .paragraph > .paragraph {
289290
margin: 0;

0 commit comments

Comments
 (0)