Skip to content

Commit 011bb4c

Browse files
committed
Fix display problem on mobile
1 parent 303267d commit 011bb4c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/assets/stylesheets/public.css.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ header {
6565
right: 0;
6666
margin: 0 auto;
6767

68-
img {
68+
.img-wrap {
6969
border: 2px solid $main-color;
70+
border-radius: 50%;
7071
padding: 2px;
72+
display: inline-block;
7173
}
7274

7375
h1 {

app/views/layouts/_header.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<header class="text-center">
22
<% if Setting.website.avatar.present? %>
3-
<img class="img-circle" src="<%= Setting.website.avatar %>?s=200&r=g">
3+
<div class="img-wrap">
4+
<img class="img-circle" src="<%= Setting.website.avatar %>">
5+
</div>
46
<% end %>
57

68
<h1><%= Setting.website.title %></h1>

0 commit comments

Comments
 (0)