From 47d55dcaf8b776fa2ba4272e1ae8fa2e5ef87ee4 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 16 Jul 2025 11:31:49 -0400 Subject: fixed disappearing images caused by having no height when default image was an alternate. fixed columnDragger for masonry view to always display to avoid flicker artifacts. --- src/client/views/collections/CollectionStackingView.scss | 2 +- src/client/views/collections/CollectionStackingView.tsx | 6 +++--- src/client/views/nodes/ImageBox.tsx | 2 +- src/client/views/smartdraw/DrawingFillHandler.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionStackingView.scss b/src/client/views/collections/CollectionStackingView.scss index 2cf361847..ec81eb305 100644 --- a/src/client/views/collections/CollectionStackingView.scss +++ b/src/client/views/collections/CollectionStackingView.scss @@ -18,7 +18,7 @@ .collectionStackingView-columnDragger { width: 28px; height: 28px; - position: relative; + position: absolute; margin-left: -5px; z-index: 10; > svg { diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index fbdd23315..7ff90ee53 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -417,8 +417,8 @@ export class CollectionStackingView extends CollectionSubView - + style={{ cursor: this._cursor, color: SettingsManager.userColor, left: `${NumCast(this.Document._layout_columnWidth)}px` }}> + ); } @@ -563,7 +563,7 @@ export class CollectionStackingView extends CollectionSubView (!this.isStackingView ? 1 : Math.max(1, Math.min(docList.length, Math.floor((this._props.PanelWidth() - 2 * this.xMargin) / (this.columnWidth + this.gridGap))))); return (
- {this._props.isContentActive() && !this.isStackingView && !this.chromeHidden ? this.columnDragger : null} + {!this.isStackingView && !this.chromeHidden ? this.columnDragger : null}
() { @computed get nativeSize() { TraceMobx(); - if (this.paths.length && this.paths[0].includes(DefaultPath)) return { nativeWidth: NumCast(this.layoutDoc._width), nativeHeight: NumCast(this.layoutDoc._height), nativeOrientation: 0 }; + if (this.paths[0]?.includes(DefaultPath) && this.layoutDoc._height) return { nativeWidth: NumCast(this.layoutDoc._width), nativeHeight: NumCast(this.layoutDoc._height), nativeOrientation: 0 }; const { nativeWidth, nativeHeight } = this.imgNativeSize; const nativeOrientation = NumCast(this.dataDoc[this.fieldKey + '_nativeOrientation'], 1); return { nativeWidth, nativeHeight, nativeOrientation }; diff --git a/src/client/views/smartdraw/DrawingFillHandler.tsx b/src/client/views/smartdraw/DrawingFillHandler.tsx index f773957e7..e9e3335f9 100644 --- a/src/client/views/smartdraw/DrawingFillHandler.tsx +++ b/src/client/views/smartdraw/DrawingFillHandler.tsx @@ -62,7 +62,7 @@ export class DrawingFillHandler { ai_prompt: newPrompt, tags: new List(['@ai']), title: newPrompt, - _data_usePath: 'alternate:hover', + //_data_usePath: 'alternate:hover', data_alternates: new List([drawing]), _width: 500, data_nativeWidth: info.nativeWidth, -- cgit v1.2.3-70-g09d2