From a98464e9dd5ac7039d5bfdbeabc51971c298e17d Mon Sep 17 00:00:00 2001 From: John Otander Date: Sun, 22 Jul 2018 11:35:33 -0600 Subject: [PATCH] Scroll overflow in editor --- src/LiveEditor.js | 1 + test/snapshots/components.js.md | 22 +++++++++++----------- test/snapshots/components.js.snap | Bin 3260 -> 3257 bytes 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/LiveEditor.js b/src/LiveEditor.js index 8d262b7..56522ef 100644 --- a/src/LiveEditor.js +++ b/src/LiveEditor.js @@ -31,6 +31,7 @@ const Editor = styled(LiveEditor)([], { fontSize: '13px', margin: 0, padding: '16px', + overflow: 'auto', borderRadius: '0 0 2px 2px', '&:focus': { outline: 'none', diff --git a/test/snapshots/components.js.md b/test/snapshots/components.js.md index 01247bd..1b4e3cf 100644 --- a/test/snapshots/components.js.md +++ b/test/snapshots/components.js.md @@ -67,12 +67,12 @@ Generated by [AVA](https://ava.li). > Snapshot 1
@@ -117,7 +117,7 @@ Generated by [AVA](https://ava.li). [
,
@@ -175,14 +175,14 @@ Generated by [AVA](https://ava.li). className="sc-kgoBCf eSqAOl" />