Usercard buttons on mobile should utilize full width

Usercard buttons on mobile should utilize full width

diff --git a/app/assets/stylesheets/mobile/components/user-card.scss b/app/assets/stylesheets/mobile/components/user-card.scss
index 7d3cc1f..c39f979 100644
--- a/app/assets/stylesheets/mobile/components/user-card.scss
+++ b/app/assets/stylesheets/mobile/components/user-card.scss
@@ -22,11 +22,14 @@ $avatar_width: 120px;
       margin-top: 1em;
       max-width: 100%;
       li {
-        flex: 1;
+        flex: 1 0 auto;
         min-width: 0;
         &:nth-child(2) {
           border-left: 0.5em solid transparent;
         }
+        &:empty {
+          display: none;
+        }
         button {
           @include ellipsis;
         }

GitHub sha: d0a7f157

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/small-message-button-on-profile-card-inside-a-topic/154543/4