aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-02 18:02:00 -0400
committerbobzel <zzzman@gmail.com>2024-10-02 18:02:00 -0400
commite61b2b356e761dfefda9d09bbbfc3c4a8d943f2c (patch)
treed6dc032016834f50761f69f5309374d81bad79a7 /src
parenta10e617f362e4d72288cac1ae8218ea87a661b6f (diff)
parent8f64a959b3ff7985f67500b35ff4d8060de33846 (diff)
Merge branch 'master' into alyssa-starter
Diffstat (limited to 'src')
-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 bcfcd0751..865146d68 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
@@ -1270,7 +1270,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() {