remove vertical rtl for cards

This commit is contained in:
Bruce Liu 2022-06-08 11:18:26 -07:00
parent 34971eac80
commit 6fac29b4db

View File

@ -7,7 +7,7 @@ type HighlightsProps = {
text: string text: string
filter: FeedFilter filter: FeedFilter
title?: boolean title?: boolean
dir: SourceTextDirection dir?: SourceTextDirection
} }
const Highlights: React.FunctionComponent<HighlightsProps> = props => { const Highlights: React.FunctionComponent<HighlightsProps> = props => {
@ -61,12 +61,9 @@ const Highlights: React.FunctionComponent<HighlightsProps> = props => {
const testStyle = { const testStyle = {
direction: "inherit", direction: "inherit",
writingMode: "inherit",
} as React.CSSProperties } as React.CSSProperties
if (props.dir === SourceTextDirection.RTL) { if (props.dir === SourceTextDirection.RTL) {
testStyle.direction = "rtl" testStyle.direction = "rtl"
} else if (props.dir === SourceTextDirection.Vertical) {
testStyle.writingMode = "vertical-rl"
} }
return ( return (
<> <>