remove vertical rtl for cards
This commit is contained in:
parent
34971eac80
commit
6fac29b4db
|
@ -7,7 +7,7 @@ type HighlightsProps = {
|
|||
text: string
|
||||
filter: FeedFilter
|
||||
title?: boolean
|
||||
dir: SourceTextDirection
|
||||
dir?: SourceTextDirection
|
||||
}
|
||||
|
||||
const Highlights: React.FunctionComponent<HighlightsProps> = props => {
|
||||
|
@ -61,12 +61,9 @@ const Highlights: React.FunctionComponent<HighlightsProps> = props => {
|
|||
|
||||
const testStyle = {
|
||||
direction: "inherit",
|
||||
writingMode: "inherit",
|
||||
} as React.CSSProperties
|
||||
if (props.dir === SourceTextDirection.RTL) {
|
||||
testStyle.direction = "rtl"
|
||||
} else if (props.dir === SourceTextDirection.Vertical) {
|
||||
testStyle.writingMode = "vertical-rl"
|
||||
}
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue