From 423e2ca544329578367fe422dcef4dfe5aa5431d Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 21 Jun 2024 12:04:04 +0300 Subject: [PATCH 1/3] fix favicon metadata path --- application/Espo/Core/Utils/ClientManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/Core/Utils/ClientManager.php b/application/Espo/Core/Utils/ClientManager.php index 053368aa4d..96b598ac26 100644 --- a/application/Espo/Core/Utils/ClientManager.php +++ b/application/Espo/Core/Utils/ClientManager.php @@ -170,7 +170,7 @@ class ClientManager $cssFileList = $this->metadata->get(['app', 'client', 'cssList'], []); $linkList = $this->metadata->get(['app', 'client', 'linkList'], []); - $faviconAlternate = $this->metadata->get('app.client.favicon') ?? $this->faviconAlternate; + $faviconAlternate = $this->metadata->get('app.client.faviconAlternate') ?? $this->faviconAlternate; [$favicon, $faviconType] = $this->getFaviconData(); $scriptsHtml = implode('', @@ -397,7 +397,7 @@ class ClientManager */ private function getFaviconData(): array { - $faviconSvgPath = $this->metadata->get('app.client.faviconSvg') ?? $this->favicon; + $faviconSvgPath = $this->metadata->get('app.client.favicon') ?? $this->favicon; $faviconType = str_ends_with($faviconSvgPath, '.svg') ? 'image/svg+xml' : 'image/png'; return [$faviconSvgPath, $faviconType]; From 5f954c22da1ca9a5fc1f53bda668efa2b7f7e7c6 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 21 Jun 2024 12:41:36 +0300 Subject: [PATCH 2/3] fix header dropdown on small screen --- frontend/less/espo/custom.less | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.less index 3e16461577..f659848a54 100644 --- a/frontend/less/espo/custom.less +++ b/frontend/less/espo/custom.less @@ -155,10 +155,34 @@ img.image-preview { } @media screen and (max-width: (@screen-sm-min - 1px)) { - .header-title, + .header-title, > h3 { font-size: 21px; } + + .header-buttons { + > .btn { + max-width: 280px; + overflow: hidden; + text-overflow: ellipsis; + } + + &:has(:nth-child(3)) { + > .btn { + max-width: 240px; + } + } + + &:has(:nth-child(4)) { + > .btn { + max-width: 170px; + } + } + + .dropdown-group:last-child { + float: right; + } + } } .page-header-row { From 258980199332178232fd8d7ab5c36a49b25baf84 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 21 Jun 2024 13:14:40 +0300 Subject: [PATCH 3/3] css fix --- frontend/less/espo/layout-side.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/less/espo/layout-side.less b/frontend/less/espo/layout-side.less index cce7dfa356..8f691936eb 100644 --- a/frontend/less/espo/layout-side.less +++ b/frontend/less/espo/layout-side.less @@ -270,6 +270,10 @@ body[data-navbar="side"] { > a { width: 34px; + + &:focus { + background-color: transparent; + } } }