refactor: better class naming

This commit is contained in:
Shivam Mishra 2020-06-08 16:05:05 +05:30
parent 55e80bd115
commit e05b0e9dfc
2 changed files with 2 additions and 2 deletions

View file

@ -292,7 +292,7 @@
margin-right: -2px;
margin-left: -2px;
.grid-image {
.image-container {
overflow: hidden;
border: 2px solid #fff;
border-radius: $border-radius;

View file

@ -7,7 +7,7 @@
{%- set image = values['image_' + index ] -%}
{%- set class = "narrow" if index in ['1', '4'] else "wide" -%}
{%- if image -%}
<div class="grid-image {{ class }}">
<div class="image-container {{ class }}">
{{ frappe.render_template('templates/includes/image_with_blur.html', {
"src": image
}) }}