diff --git a/client/src/views/site/navbar/last-viewed.js b/client/src/views/site/navbar/last-viewed.js index 85f87a1138..e11f3617b7 100644 --- a/client/src/views/site/navbar/last-viewed.js +++ b/client/src/views/site/navbar/last-viewed.js @@ -93,6 +93,8 @@ export default class LastViewedSiteNavbarItemView extends SiteNavbarItemView { document.addEventListener('mouseup', this.onMouseUpBind); document.addEventListener('click', this.onClickBind); + this.element.classList.add('open'); + await view.processFetch(); } @@ -104,6 +106,8 @@ export default class LastViewedSiteNavbarItemView extends SiteNavbarItemView { this.getView('panel').remove(); } + this.element.classList.remove('open'); + this.panelElement?.parentElement?.removeChild(this.panelElement); document.removeEventListener('mouseup', this.onMouseUpBind); diff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.less index 2f2d0f09a2..055226b0e3 100644 --- a/frontend/less/espo/custom.less +++ b/frontend/less/espo/custom.less @@ -1964,6 +1964,8 @@ textarea.auto-height { #global-search-panel, #last-viewed-panel { > .panel { + border-top-right-radius: 0; + .panel-heading { .close-link { display: none;