fix: use html layout and remove title margin
This commit is contained in:
parent
75c78eaa47
commit
bf2be7d79c
3 changed files with 4 additions and 10 deletions
|
|
@ -6,8 +6,10 @@
|
|||
<h1 class="flex" style="margin: auto;">
|
||||
<div class="title-image hide hidden-md hidden-lg">
|
||||
</div>
|
||||
<div class="ellipsis title-text"></div>
|
||||
<span class="indicator whitespace-nowrap hide"></span>
|
||||
<div class="flex fill-width">
|
||||
<div class="ellipsis title-text"></div>
|
||||
<span class="indicator whitespace-nowrap hide"></span>
|
||||
</div>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="text-right col-md-5 col-sm-4 col-xs-6 page-actions">
|
||||
|
|
|
|||
|
|
@ -140,9 +140,6 @@ frappe.ui.Page = Class.extend({
|
|||
|
||||
set_indicator: function(label, color) {
|
||||
this.clear_indicator().removeClass("hide").html(`<span>${label}</span>`).addClass(color);
|
||||
if(this.$title_area.find('.title-image').is(':visible')) {
|
||||
$(this.indicator).css('left', '70px');
|
||||
}
|
||||
},
|
||||
|
||||
add_action_icon: function(icon, click) {
|
||||
|
|
|
|||
|
|
@ -54,11 +54,6 @@ body {
|
|||
right: 140px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.title-text {
|
||||
margin-top: 10px;
|
||||
//margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
// navbar & breadcrumbs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue