diff options
| author | bobzel <zzzman@gmail.com> | 2024-02-01 19:15:56 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-02-01 19:15:56 -0500 |
| commit | 6d38ee15c640f652fd637016adcfc129617cdd50 (patch) | |
| tree | dc0081150d7931cfdef1385fffdd9b48b4c5a1c1 /src/client/views/StyleProvider.tsx | |
| parent | 9e0de1f1ee32511cf5c9b3b19accad354c3fda92 (diff) | |
updated paintbutton css to not be obscured by documentdecorations
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
| -rw-r--r-- | src/client/views/StyleProvider.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index d3d13988f..fa0be225e 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -278,7 +278,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<FieldViewProps & </div> ); const paint = () => !doc?.onPaint ? null : ( - <div className="styleProvider-paint" onClick={e => togglePaintView(e, doc, props)}> + <div className={`styleProvider-paint${props?.DocumentView?.().IsSelected ? "-selected":""}`} onClick={e => togglePaintView(e, doc, props)}> <FontAwesomeIcon icon='pen' size="lg" /> </div> ); |
