fix right-to-left text direction for legacy Outlook clients

This commit is contained in:
Alex Turchyn
2024-01-14 17:55:49 +02:00
committed by Pete Matsyburka
parent 15ff4386e5
commit a573545ead
+1 -1
View File
@@ -6,7 +6,7 @@
<style>
</style>
</head>
<body dir="auto">
<body dir="<%= yield&.match?(/[\p{Hebrew}\p{Arabic}]/) ? 'rtl' : 'auto' %>">
<%= yield %>
<%= render partial: 'shared/mailer_attribution' %>
</body>