[minor] style fixes for image view

This commit is contained in:
Rushabh Mehta 2016-06-08 16:26:59 +05:30
parent 4ad2bc9a64
commit 8092f4a031
3 changed files with 5 additions and 4 deletions

View file

@ -148,6 +148,7 @@ CREATE TABLE `tabDocType` (
`_user_tags` varchar(255) DEFAULT NULL,
`custom` int(1) NOT NULL DEFAULT 0,
`beta` int(1) NOT NULL DEFAULT 0,
`image_view` int(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`name`),
KEY `parent` (`parent`)
) ENGINE=InnoDB ROW_FORMAT=COMPRESSED CHARACTER SET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

View file

@ -1,4 +1,4 @@
<div class="col-xs-12 col-sm-3 doclist-row has-checkbox image-view text-ellipsis">
<div class="col-xs-6 col-sm-4 col-md-3 doclist-row has-checkbox image-view text-ellipsis">
<div class="row">
<div class="col-xs-12 image-view-col">
{%= subject %}
@ -7,8 +7,8 @@
<!-- Image -->
<div class="row">
<div class="col-xs-12 image-view-col" align="center">
<div class="pos-item-image image-field" data-name="{{ data.name }}" style="{% if (item_image) { %} background-image: {%= item_image %} {% }
else { %} background-color: {{ color }} {% } %}">
<div class="pos-item-image image-field" data-name="{{ data.name }}" style="{% if (item_image) { %} background-image: {%= item_image %}; {% }
else { %} background-color: {{ color }}; {% } %} border: 0px;">
{% if (!item_image) { %}{%= frappe.get_abbr(data.name) %}{% } %}
<table class="table table-condensed field-info">
{% for (var i=0, l=columns.length; i < l; i++ ) {

View file

@ -14,7 +14,7 @@
</span>
<a class="grey list-id {{ css_seen }}"
data-name="{{ _name }}"
style="margin-right: 7px;"
style="margin-right: 7px; margin-left: -8px;"
href="#Form/{{ _doctype_encoded }}/{{ _name_encoded }}"
title="{{ _full_title }}">{{ strip_html(_title) }}</a>
{% if (_workflow && !_without_workflow) { %}