UX: add height attribute to logo on error pages

This matches what we do in the home-logo widget. The height is set as an attribute and we use CSS to get a scaled width that preserves the aspect ratio of the image.
This commit is contained in:
Joe 2018-11-23 15:04:34 +08:00 committed by GitHub
parent a1888b301b
commit e2214b50f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3,10 +3,10 @@
<div class="wrap">
<div class="contents">
<div class="row">
<div class="title span13">
<div class="logo-wrapper">
<a href="<%= path "/" %>">
<%- if application_logo_url.present? %>
<img src="<%= application_logo_url %>" alt="<%= SiteSetting.title %>" id="site-logo">
<img src="<%= application_logo_url %>" height="36" alt="<%= SiteSetting.title %>" id="site-logo">
<%- else %>
<h2 id='site-text-logo'><%= SiteSetting.title %></h2>
<%- end %>