Skip to content

Commit

Permalink
fix: hide "Edit" text on md viewport
Browse files Browse the repository at this point in the history
hide text on md viewport and add min-width of 0 instead of 50px

(cherry picked from commit fb62a22)
  • Loading branch information
maharshivpatel authored and mergify[bot] committed Aug 17, 2023
1 parent 9ad35d3 commit 73a1b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/form/grid_row.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export default class GridRow {
this.open_form_button = $(`
<div class="btn-open-row">
<a>${frappe.utils.icon("edit", "xs")}</a>
<div class="hidden-xs edit-grid-row">${__("Edit")}</div>
<div class="hidden-md edit-grid-row">${__("Edit")}</div>
</div>
`)
.appendTo(this.open_form_button)
Expand Down
2 changes: 1 addition & 1 deletion frappe/public/scss/common/grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
.grid-row > .row {
.col:last-child {
border-right: none;
min-width: 50px;
min-width: 0;
}

.col {
Expand Down

0 comments on commit 73a1b00

Please sign in to comment.