diff options
author | bobzel <zzzman@gmail.com> | 2025-06-13 09:00:49 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-06-13 09:00:49 -0400 |
commit | 2d6307f6eaa0803aefabae9e9232506611365b66 (patch) | |
tree | 7d77764b51a8dcfef4ed5554be6028fea815a4ae /src/client/views/nodes/ImageBox.tsx | |
parent | b91057d00512446339e48fb8488a97a1e5ef03d5 (diff) |
updated css and project to HTML5 standards. fixed border rounding for images.
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index 8ed59c6e1..616046d5d 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -962,8 +962,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { rejectDrop = (de: DragManager.DropEvent, subView?: DocumentView | undefined) => (this.dataDoc[this.fieldKey] === undefined ? true : (this._props.rejectDrop?.(de, subView) ?? false)); render() { TraceMobx(); - const borderRad = this._props.styleProvider?.(this.layoutDoc, this._props, StyleProp.BorderRounding) as string; - const borderRadius = borderRad?.includes('px') ? `${Number(borderRad.split('px')[0]) / (this._props.NativeDimScaling?.() || 1)}px` : borderRad; + const borderRadius = this._props.styleProvider?.(this.layoutDoc, this._props, StyleProp.BorderRounding) as string; return ( <> <div |