remove vertical rtl for cards
This commit is contained in:
parent
34971eac80
commit
6fac29b4db
@ -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 (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user