aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-06-13 09:00:49 -0400
committerbobzel <zzzman@gmail.com>2025-06-13 09:00:49 -0400
commit2d6307f6eaa0803aefabae9e9232506611365b66 (patch)
tree7d77764b51a8dcfef4ed5554be6028fea815a4ae /src/client/views/collections/CollectionStackingView.tsx
parentb91057d00512446339e48fb8488a97a1e5ef03d5 (diff)
updated css and project to HTML5 standards. fixed border rounding for images.
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 4a0ddc631..bdeb7d944 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -64,7 +64,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
@observable _cursor: CSS.Property.Cursor = 'ew-resize';
// gets reset whenever we scroll. Not sure what it is
@observable _scroll = 0; // used to force the document decoration to update when scrolling
- // does this mean whether the browser is hidden? Or is chrome something else entirely?
+ // whether ui/editing controls are shown
@computed get chromeHidden() {
return this._props.chromeHidden || BoolCast(this.layoutDoc.chromeHidden);
}
@@ -566,7 +566,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
return (
<div key={(heading?.heading ?? '') + 'head'}>
{this._props.isContentActive() && !this.isStackingView && !this.chromeHidden ? this.columnDragger : null}
- <div style={{ top: this.yMargin }}>
+ <div style={{ position: 'relative' }}>
<CollectionMasonryViewFieldRow
showHandle={first}
Doc={this.Document}
@@ -715,9 +715,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
background: this._props.styleProvider?.(this.Document, this._props, StyleProp.BackgroundColor) as string,
pointerEvents: this._props.pointerEvents?.() ?? this.backgroundEvents,
}}
- onScroll={action(e => {
- this._scroll = e.currentTarget.scrollTop;
- })}
+ onScroll={action(e => (this._scroll = e.currentTarget.scrollTop))}
onDrop={this.onExternalDrop.bind(this)}
onContextMenu={this.onContextMenu}
onWheel={e => this.isContentActive() && e.stopPropagation()}>