Sfoglia il codice sorgente

[design] sidebar attachments width, list item id position in mobile view when no checkbox

version-14
Anand Doshi 10 anni fa
parent
commit
54f016606e
8 ha cambiato i file con 15 aggiunte e 6 eliminazioni
  1. +4
    -1
      frappe/public/css/mobile.css
  2. +1
    -0
      frappe/public/css/sidebar.css
  3. +1
    -1
      frappe/public/js/frappe/form/footer/attachments.js
  4. +1
    -1
      frappe/public/js/frappe/list/list_item_row.html
  5. +1
    -1
      frappe/public/js/frappe/list/list_sidebar_stat.html
  6. +1
    -1
      frappe/public/js/frappe/list/listview.js
  7. +5
    -1
      frappe/public/less/mobile.less
  8. +1
    -0
      frappe/public/less/sidebar.less

+ 4
- 1
frappe/public/css/mobile.css Vedi File

@@ -22,10 +22,13 @@
padding-right: 10px;
}
.doclist-row .list-row-id {
left: 40px;
left: 18px;
text-align: left;
margin-top: 3px;
}
.doclist-row .doclist-row.has-checkbox .list-row-id {
left: 40px;
}
.doclist-row .list-row-indicator {
position: absolute;
right: 0px;


+ 1
- 0
frappe/public/css/sidebar.css Vedi File

@@ -70,6 +70,7 @@ body[data-route^="Module"] .main-menu .form-sidebar {
position: absolute;
font-weight: normal;
right: 0px;
padding-bottom: 4px;
}
.sidebar-menu .octicon {
font-size: 12px;


+ 1
- 1
frappe/public/js/frappe/form/footer/attachments.js Vedi File

@@ -65,7 +65,7 @@ frappe.ui.form.Attachments = Class.extend({
var $attach = $(repl('<li class="attachment-row">\
<a class="close" data-owner="%(owner)s">&times;</a>\
<a href="%(file_url)s" target="_blank" title="%(file_name)s" \
class="text-ellipsis" style="width: calc(100% - 43px);">\
class="text-ellipsis" style="max-width: calc(100% - 43px);">\
<span>%(file_name)s</span></a>\
</li>', {
file_name: file_name,


+ 1
- 1
frappe/public/js/frappe/list/list_item_row.html Vedi File

@@ -1,4 +1,4 @@
<div class="row doclist-row">
<div class="row doclist-row {% if (data._checkbox) { %} has-checkbox {% } %}">
<div class="{% if(right_column) { %} col-xs-12 {% } else { %} col-xs-10 {% } %}
{% if (list.meta.title_field) { %}
col-sm-8


+ 1
- 1
frappe/public/js/frappe/list/list_sidebar_stat.html Vedi File

@@ -8,7 +8,7 @@
var stat_label = stat[i][0];
var stat_count = stat[i][1];
%}
<li class="text-muted">
<li>
<a class="stat-link badge-hover" data-label="{%= stat_label %}" data-field="{%= field %}">
<span class="badge">{%= stat_count %}</span>
<span>{%= __(stat_label) %}</span>


+ 1
- 1
frappe/public/js/frappe/list/listview.js Vedi File

@@ -163,7 +163,7 @@ frappe.views.ListView = Class.extend({
add_column: function(df) {
// field width
var colspan = 3;
if(in_list(["Int", "Percent", "Select"], df.fieldtype)) {
if(in_list(["Int", "Percent"], df.fieldtype)) {
colspan = 2;
} else if(in_list(["Check", "Image"], df.fieldtype)) {
colspan = 1;


+ 5
- 1
frappe/public/less/mobile.less Vedi File

@@ -30,12 +30,16 @@
padding-right: 10px;

.list-row-id {
left: 40px;
left: 18px;
text-align: left;
margin-top: 3px;
// left: 83.33333333%;
}

.doclist-row.has-checkbox .list-row-id {
left: 40px;
}

.list-row-indicator {
position: absolute;
right: 0px;


+ 1
- 0
frappe/public/less/sidebar.less Vedi File

@@ -96,6 +96,7 @@ body[data-route^="Module"] .main-menu {
position: absolute;
font-weight: normal;
right: 0px;
padding-bottom: 4px;
}

.octicon {


Caricamento…
Annulla
Salva