mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 05:04:24 +00:00
fix: custom portal color on previews
This commit is contained in:
committed by
Tienson Qin
parent
17206d32c0
commit
bdcf0740d2
@@ -554,7 +554,9 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
|
||||
<rect
|
||||
fill={
|
||||
this.props.fill && this.props.fill !== 'var(--ls-secondary-background-color)'
|
||||
? `var(--ls-highlight-color-${this.props.fill})`
|
||||
? isBuiltInColor(this.props.fill)
|
||||
? `var(--ls-highlight-color-${this.props.fill})`
|
||||
: this.props.fill
|
||||
: 'var(--ls-secondary-background-color)'
|
||||
}
|
||||
stroke={getComputedColor(this.props.fill, 'background')}
|
||||
|
||||
Reference in New Issue
Block a user