fix: report view last row border

- remove commented out code
This commit is contained in:
prssanna 2020-11-11 17:05:49 +05:30
parent b998a14e23
commit a6cabe7f04
2 changed files with 8 additions and 116 deletions

View file

@ -48,6 +48,7 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
setup_view() {
this.setup_columns();
super.setup_new_doc_event();
this.page.main.addClass('report-view');
}
toggle_side_bar() {

View file

@ -129,7 +129,13 @@ table td.dt-cell {
position: relative;
}
.report-view {
.dt-row:last-child:not(.dt-row-filter) {
.dt-cell {
border-bottom: 1px solid var(--border-color);
}
}
}
.report-action-checkbox {
margin: 0;
@ -144,8 +150,6 @@ table td.dt-cell {
}
}
@keyframes breathe {
0% {
background-color: transparent;
@ -157,116 +161,3 @@ table td.dt-cell {
background-color: transparent;
}
}
// @import "variables.less";
// .datatable {
// margin-left: -1px;
// margin-top: -1px;
// font-size: @text-medium;
// .frappe-control, .form-control {
// margin: 0;
// border-radius: 0px;
// border: none;
// background-color: transparent;
// }
// .form-group {
// margin: 0;
// }
// .link-btn {
// top: 6px;
// }
// select {
// height: 27px;
// }
// .checkbox {
// margin: 7px 0 7px 8px;
// }
// [data-fieldtype="Color"] .control-input {
// overflow: hidden;
// }
// }
// .dt-scrollable {
// max-height: calc(100vh - 250px);
// min-height: 100px;
// scrollbar-width: thin;
// }
// table td.dt-cell {
// position: relative;
// }
// .dt-cell__edit {
// padding: 0;
// input {
// font-size: inherit;
// height: 27px;
// }
// }
// .dt-header {
// --dt-header-cell-bg: @panel-bg;
// --dt-cell-bg: @panel-bg;
// --dt-text-color: @text-muted;
// .dt-row[data-is-filter] {
// display: flex !important;
// }
// }
// .dt-row {
// height: 35px;
// }
// .dt-row.dt-row-totalRow {
// font-weight: bold;
// }
// .dt-row.row-update {
// animation: 500ms breathe forwards;
// }
// .report-action-checkbox {
// margin: 0;
// margin-left: 10px;
// .checkbox {
// margin: 0;
// }
// .help-box {
// display: none;
// }
// }
// .dt-filter {
// border: 1px solid @light-border-color;
// border-radius: 3px;
// background-color: #fff;
// }
// .dt-tree-node__toggle + a {
// margin-left: 4px;
// }
// @keyframes breathe {
// 0% {
// background-color: transparent;
// }
// 50% {
// background-color: @extra-light-yellow;
// }
// 100% {
// background-color: transparent;
// }
// }