restrict height of the custom brand logo in emails
This commit is contained in:
parent
26da2c45ac
commit
c1e94479bd
|
|
@ -54,7 +54,10 @@ module EmailsHelper
|
|||
|
||||
def header_logo
|
||||
if brand_item && brand_item.header_logo?
|
||||
brand_header_logo
|
||||
image_tag(
|
||||
brand_item.header_logo,
|
||||
style: 'height: 50px'
|
||||
)
|
||||
else
|
||||
image_tag(
|
||||
image_url('mailers/gitlab_header_logo.gif'),
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ describe EmailsHelper do
|
|||
)
|
||||
|
||||
expect(header_logo).to eq(
|
||||
%{<img src="/uploads/appearance/header_logo/#{appearance.id}/dk.png" alt="Dk" />}
|
||||
%{<img style="height: 50px" src="/uploads/appearance/header_logo/#{appearance.id}/dk.png" alt="Dk" />}
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue