Skip to content

Commit

Permalink
Merge pull request deltachat#3419 from deltachat/adb/issue-3291
Browse files Browse the repository at this point in the history
don't increase reaction selector's font size according to system
  • Loading branch information
adbenitez authored Nov 12, 2024
2 parents a5167f3 + 715a2c0 commit 537127e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void show(DcMsg msgToReactTo, View parentView, AddReactionListener listen
} else {
x += offset;
}
ViewUtil.setLeftMargin(this, x);
ViewUtil.setLeftMargin(this, Math.max(x, 0));

int y = Math.max((int)parentView.getY() - offset, offset/2);
ViewUtil.setTopMargin(this, y);
Expand Down
6 changes: 3 additions & 3 deletions src/main/res/values/text_styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
</style>

<style name="AddReaction" parent="Base.TextAppearance.AppCompat.Body1">
<item name="android:paddingLeft">8sp</item>
<item name="android:paddingRight">8sp</item>
<item name="android:textSize">28sp</item>
<item name="android:paddingLeft">8dp</item>
<item name="android:paddingRight">8dp</item>
<item name="android:textSize">28dp</item>
<item name="android:fontFamily">sans-serif</item>
</style>
</resources>

0 comments on commit 537127e

Please sign in to comment.