Page MenuHomePhabricator

D5048.diff
No OneTemporary

D5048.diff

diff --git a/native/markdown/rules.react.js b/native/markdown/rules.react.js
--- a/native/markdown/rules.react.js
+++ b/native/markdown/rules.react.js
@@ -224,11 +224,19 @@
node: SharedMarkdown.SingleASTNode,
output: SharedMarkdown.Output<SharedMarkdown.ReactElement>,
state: SharedMarkdown.State,
- ) => (
- <View key={state.key} style={styles.blockQuote}>
- {output(node.content, state)}
- </View>
- ),
+ ) => {
+ const { isNestedQuote } = state;
+ const backgroundColor = isNestedQuote ? '#00000000' : '#00000066';
+
+ return (
+ <View
+ key={state.key}
+ style={[styles.blockQuote, { backgroundColor }]}
+ >
+ {output(node.content, { ...state, isNestedQuote: true })}
+ </View>
+ );
+ },
},
codeBlock: {
...SimpleMarkdown.defaultRules.codeBlock,
diff --git a/native/markdown/styles.js b/native/markdown/styles.js
--- a/native/markdown/styles.js
+++ b/native/markdown/styles.js
@@ -60,9 +60,9 @@
fontWeight: 'bold',
},
blockQuote: {
- backgroundColor: 'blockQuoteBackground',
- borderLeftColor: 'blockQuoteBorder',
- borderLeftWidth: 5,
+ borderLeftColor: '#00000066',
+ borderLeftWidth: 8,
+ borderRadius: 8,
padding: 10,
marginBottom: 6,
marginVertical: 6,

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 12:57 AM (18 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2566944
Default Alt Text
D5048.diff (1 KB)

Event Timeline