Skip to content

Fix code demo size being incorrect for some langs#4251

Merged
rachel-fenichel merged 1 commit into
RaspberryPiFoundation:developfrom
BeksOmega:fix/code-demo-size
Sep 1, 2020
Merged

Fix code demo size being incorrect for some langs#4251
rachel-fenichel merged 1 commit into
RaspberryPiFoundation:developfrom
BeksOmega:fix/code-demo-size

Conversation

@BeksOmega

Copy link
Copy Markdown
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#4245

Proposed Changes

Adds a white-space: nowrap property to the tabon class.

Reason for Changes

Certain unicode characters layout vertically by default. This was pushing the size of the content area down when it should not have been.
Vertical

Adding an explicit white-space: nowrap property to the div makes it so that they always layout horizontally, so we don't get size issues:
Horizontal

Test Coverage

Tried switching between Japanese, Traditional Chinese, and English. Observed no layout issues.

Tested on:

  • Desktop Chrome

Additional Information

N/A

@rachel-fenichel
rachel-fenichel merged commit 05c74d8 into RaspberryPiFoundation:develop Sep 1, 2020
@BeksOmega
BeksOmega deleted the fix/code-demo-size branch May 13, 2021 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants