add normalization for deviantart artist urls

This commit is contained in:
Albert Yi
2018-07-10 14:35:35 -07:00
parent a610111658
commit 6ea3d7983e
2 changed files with 6 additions and 6 deletions

View File

@@ -174,14 +174,14 @@
.user-disable-cropped-false {
article {
width: 32vw;
height: 32vw;
margin: 0 auto;
width: 150px;
height: 150px;
margin: 5px;
}
img {
width: 32vw;
height: 32vw;
width: 150px;
height: 150px;
}
}

View File

@@ -1,4 +1,4 @@
<div id="posts" class="user-disable-cropped-<%= CurrentUser.user.disable_cropped_thumbnails? %>">
<div id="posts" class="user-disable-cropped-<%= Danbooru.config.enable_image_cropping && CurrentUser.user.disable_cropped_thumbnails? %>">
<div id="posts-container">
<%= post_set.presenter.post_previews_html(self) %>
</div>