From e290d8fa233c55419a415b8a968b1f14d70a25c7 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Mon, 29 Apr 2019 11:34:14 +0530 Subject: [PATCH] fix: "Border disappears on zoom out" issue (#7365) * fix: "Border disappears on zoom out" issue * fix: Use before pseudo element to avoid element block --- frappe/public/less/page.less | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frappe/public/less/page.less b/frappe/public/less/page.less index d051a63b00..c0609f8395 100644 --- a/frappe/public/less/page.less +++ b/frappe/public/less/page.less @@ -109,6 +109,17 @@ .layout-main-section { border: 1px solid @border-color; border-top: 0px; + // hack + // https://stackoverflow.com/a/49038292/5955589 + &::before { + content: ''; + position: absolute; + top: 0; + right: 15px; + bottom: 0; + left: 15px; + border: 1px solid @border-color; + } } .layout-main-section-wrapper {