Skip to content

Commit

Permalink
Mailer layout fixes (mastodon#32132)
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 authored Sep 27, 2024
1 parent 24d3ce7 commit 9d664f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/javascript/styles/mailer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ table + p {

.email-header-card-banner-td {
border-radius: 12px 12px 0 0;
width: 236px;
height: 80px;
background-color: #f3f2f5 !important;
background-position: center !important;
Expand Down Expand Up @@ -523,6 +524,7 @@ table + p {
height: 40px;
text-align: center;
mso-padding-alt: 0 35px;
word-break: normal;
}

.email-btn-a {
Expand Down
2 changes: 1 addition & 1 deletion app/views/user_mailer/welcome.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%td
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
%tr
%td.email-header-card-banner-td{ height: 140, background: full_asset_url(instance_presenter.thumbnail&.file&.url(:'@1x') || frontend_asset_path('images/preview.png')) }
%td.email-header-card-banner-td{ background: full_asset_url(instance_presenter.thumbnail&.file&.url(:'@1x') || frontend_asset_path('images/preview.png')) }
%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
%tr
%td.email-header-card-body-td
Expand Down

0 comments on commit 9d664f8

Please sign in to comment.