From ef597ae65bf5a170a811e523b0edb00d15e4c8af Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Fri, 4 Aug 2023 10:12:53 -0400 Subject: [PATCH] fix: RichText applies direction-specific padding Certain contexts apply different padding for different directions, e.g. horizontal vs vertical, left vs right. --- .../test/__snapshots__/edit.native.js.snap | 2 ++ .../test/__snapshots__/edit.native.js.snap | 12 ++++++++++-- .../test/__snapshots__/edit.native.js.snap | 5 ++++- .../test/__snapshots__/edit.native.js.snap | 10 ++++++++-- .../test/__snapshots__/edit.native.js.snap | 19 ++++++++++++++++--- .../rich-text/src/component/index.native.js | 15 ++++++++++----- .../test/__snapshots__/index.native.js.snap | 10 ++++++++-- 7 files changed, 58 insertions(+), 15 deletions(-) diff --git a/packages/block-library/src/audio/test/__snapshots__/edit.native.js.snap b/packages/block-library/src/audio/test/__snapshots__/edit.native.js.snap index dca3f782efc676..675e9ad097c195 100644 --- a/packages/block-library/src/audio/test/__snapshots__/edit.native.js.snap +++ b/packages/block-library/src/audio/test/__snapshots__/edit.native.js.snap @@ -129,6 +129,7 @@ exports[`Audio block renders audio block error state without crashing 1`] = ` style={ [ undefined, + {}, undefined, ] } @@ -355,6 +356,7 @@ exports[`Audio block renders audio file without crashing 1`] = ` style={ [ undefined, + {}, undefined, ] } diff --git a/packages/block-library/src/file/test/__snapshots__/edit.native.js.snap b/packages/block-library/src/file/test/__snapshots__/edit.native.js.snap index 5ce876137ade00..7a99d3dec493fe 100644 --- a/packages/block-library/src/file/test/__snapshots__/edit.native.js.snap +++ b/packages/block-library/src/file/test/__snapshots__/edit.native.js.snap @@ -60,6 +60,7 @@ exports[`File block renders file error state without crashing 1`] = ` style={ [ undefined, + {}, undefined, ] } @@ -174,7 +175,10 @@ exports[`File block renders file error state without crashing 1`] = `