Skip to content

Commit 0713069

Browse files
committed
Add background to logo on spaces index
1 parent af93ea3 commit 0713069

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/assets/stylesheets/application.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,3 +1111,8 @@ td.day .calendar-text {
11111111
display: flex;
11121112
justify-content: center;
11131113
}
1114+
1115+
.space-logo {
1116+
border-radius: $border-radius-base;
1117+
padding: 10px;
1118+
}

app/views/spaces/_space.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<% cache(space, expires_in: 6.hours) do %>
33
<li class="masonry-brick media-item long">
44
<%= link_to space, class: 'link-overlay', style: (theme_colour ? "border-color: #{theme_colour}" : nil) do %>
5-
<%= image_tag get_image_url_for(space), class: "media-image listing_image pull-right" %>
5+
<%= image_tag get_image_url_for(space), class: "media-image listing_image space-logo pull-right", style: (theme_colour ? "background-color: #{theme_colour}" : nil) %>
66
<h4 class="mb-2 mt-3" style="<%= theme_colour ? "color: #{theme_colour}" : ''-%>">
77
<%= space.title %>
88
</h4>

0 commit comments

Comments
 (0)