I have a message board where I am trying to incorporate delete buttons. However, when using the mat-flat-button feature, it appears to be increasing the height of the message items. If I adjust the button's height to 50%, then the button becomes half the height of the message box, which remains double the original height due to the presence of the button.
Message without button: https://i.sstatic.net/ayeTI.png
Message with Button: https://i.sstatic.net/Csly8.png
Do you have any suggestions on how I can make the button inherit the height of the container it is placed in?