aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/SidebarAnnos.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-04-05 00:01:53 -0400
committerbobzel <zzzman@gmail.com>2025-04-05 00:01:53 -0400
commit031a607100700f818f96b7fbf478f1b75292be9b (patch)
tree8c726b9529ec00888aa33504ce08e66fdda2d40b /src/client/views/SidebarAnnos.tsx
parentede7aaa19d903a7e55fc60d9bc213988ea602c97 (diff)
fixed sizing of text box annotations sidebar button. cleaned up TagsView to not overlap button bar below doc decorations or bottom resize handle
Diffstat (limited to 'src/client/views/SidebarAnnos.tsx')
-rw-r--r--src/client/views/SidebarAnnos.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/views/SidebarAnnos.tsx b/src/client/views/SidebarAnnos.tsx
index 3c0611f03..b7e6318b1 100644
--- a/src/client/views/SidebarAnnos.tsx
+++ b/src/client/views/SidebarAnnos.tsx
@@ -213,14 +213,11 @@ export class SidebarAnnos extends ObservableReactComponent<FieldViewProps & Extr
// TODO: Calculation of the topbar is hardcoded and different for text nodes - it should all be the same and all be part of SidebarAnnos
return !this._props.showSidebar ? null : (
<div
+ className="sidebarAnnos-container"
style={{
- position: 'absolute',
pointerEvents: this._props.isContentActive() ? 'all' : undefined,
top: this._props.Doc.type !== DocumentType.RTF && StrCast(this._props.Doc._layout_showTitle) === 'title' ? 15 : 0,
- right: 0,
background: this._props.styleProvider?.(this._props.Doc, this._props, StyleProp.WidgetColor) as string,
- width: `100%`,
- height: '100%',
}}>
<div className="sidebarAnnos-tagList" style={{ height: this.filtersHeight() }} onWheel={e => e.stopPropagation()}>
{this.allUsers.length > 1 ? this.allUsers.map(renderUsers) : null}
@@ -228,7 +225,7 @@ export class SidebarAnnos extends ObservableReactComponent<FieldViewProps & Extr
{Array.from(this.allMetadata.keys()).sort().map(renderMeta)}
</div>
- <div style={{ width: '100%', height: `calc(100% - 38px)`, position: 'relative' }}>
+ <div className="sidebarAnnos-stacking" style={{ height: `calc(100% - ${this.filtersHeight()}px)` }}>
<CollectionStackingView
{...this._props}
setContentViewBox={emptyFunction}