* 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
@@ -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; | ||||
@@ -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; | ||||
} | } | ||||
@@ -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) { | ||||
@@ -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; | ||||
@@ -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 { | ||||