Browse Source

Mobile Screen Title and Timeline Title #9807 (#3672)

* Mobile Screen Title and Timeline Title #9807

* Left align Indicator and corrected “Add to Knowledge Base” button misalignment.

* Pushing title changes only, reverted timeline changes.
version-14
Ashwini Save 8 years ago
committed by Rushabh Mehta
parent
commit
918e426169
5 changed files with 29 additions and 1 deletions
  1. +9
    -0
      frappe/public/css/mobile.css
  2. +3
    -0
      frappe/public/css/page.css
  3. +1
    -1
      frappe/public/js/frappe/ui/page.js
  4. +13
    -0
      frappe/public/less/mobile.less
  5. +3
    -0
      frappe/public/less/page.less

+ 9
- 0
frappe/public/css/mobile.css View File

@@ -192,6 +192,15 @@ body {
} }
} }
@media (max-width: 767px) { @media (max-width: 767px) {
body[data-route^="Form"] .page-title .title-text {
font-size: 16px;
width: calc(100% - 30px);
}
body[data-route^="Form"] .page-title .indicator {
float: left;
margin-top: 10px;
margin-right: 5px;
}
.modal .modal-dialog { .modal .modal-dialog {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;


+ 3
- 0
frappe/public/css/page.css View File

@@ -146,6 +146,9 @@ select.input-sm {
right: 101px; right: 101px;
width: 100%; width: 100%;
} }
.page-title h1 {
padding-right: 170px;
}
.page-head .page-title h1 { .page-head .page-title h1 {
font-size: 18px; font-size: 18px;
} }


+ 1
- 1
frappe/public/js/frappe/ui/page.js View File

@@ -95,7 +95,7 @@ frappe.ui.Page = Class.extend({
}, },


set_indicator: function(label, color) { set_indicator: function(label, color) {
this.clear_indicator().removeClass("hide").html(label).addClass(color);
this.clear_indicator().removeClass("hide").html(`<span class='hidden-xs'>${label}</span>`).addClass(color);
}, },


add_action_icon: function(icon, click) { add_action_icon: function(icon, click) {


+ 13
- 0
frappe/public/less/mobile.less View File

@@ -223,6 +223,19 @@ body {
} }


@media(max-width: 767px) { @media(max-width: 767px) {
body[data-route^="Form"]{
.page-title {
.title-text {
font-size: 16px;
width: calc(~"100% - 30px");
}
.indicator {
float: left;
margin-top: 10px;
margin-right: 5px;
}
}
}
.modal { .modal {
.modal-dialog { .modal-dialog {
margin: 0px; margin: 0px;


+ 3
- 0
frappe/public/less/page.less View File

@@ -178,6 +178,9 @@ select.input-sm {
left: 0; left: 0;
right: 101px; right: 101px;
width: 100%; width: 100%;
h1 {
padding-right: 170px;
}
} }


.page-head .page-title h1 { .page-head .page-title h1 {


Loading…
Cancel
Save