aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-02 18:01:54 -0400
committerbobzel <zzzman@gmail.com>2024-10-02 18:01:54 -0400
commit8f64a959b3ff7985f67500b35ff4d8060de33846 (patch)
treec42ea8f29f21eabba035770e6c697a91014d4e01 /src/client/views/nodes/formattedText/FormattedTextBox.tsx
parentfbea2a097191f22ae20a609760bd632fc98ca414 (diff)
fixed bottom padding in textbox for tags to depend on yMargins.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
index 1e6984e3d..5db854b69 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
@@ -1195,7 +1195,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB
};
@computed get tagsHeight() {
- return this.DocumentView?.().showTags ? 30 : 0;
+ return this.DocumentView?.().showTags ? Math.max(0, 20 - Math.max(this._props.yPadding ?? 0, NumCast(this.layoutDoc._yMargin))) : 0;
}
@computed get contentScaling() {