From e09441fb5c22f505524d1c4d4ee255710e6a6d13 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Tue, 10 Dec 2024 10:15:59 +0100 Subject: [PATCH] feat: Enhance Topbar Buttons Tooltips - MEED-7848 - Meeds-io/meeds#2644 (#266) This change will adjust the icon sizes and improves the tooltip and performances of page rendering. --- .../webapp/WEB-INF/jsp/siteManagement.jsp | 1 - .../webapp/WEB-INF/jsp/siteNavigation.jsp | 19 +++++++++++-- .../components/SiteNavigation.vue | 2 +- .../components/SiteNavigationButton.vue | 27 +++++++++---------- 4 files changed, 30 insertions(+), 19 deletions(-) diff --git a/layout-webapp/src/main/webapp/WEB-INF/jsp/siteManagement.jsp b/layout-webapp/src/main/webapp/WEB-INF/jsp/siteManagement.jsp index e945ebca..d07d422d 100644 --- a/layout-webapp/src/main/webapp/WEB-INF/jsp/siteManagement.jsp +++ b/layout-webapp/src/main/webapp/WEB-INF/jsp/siteManagement.jsp @@ -1,6 +1,5 @@ <%@ page import="org.exoplatform.portal.config.UserPortalConfigService" %> <%@ page import="org.exoplatform.container.PortalContainer" %> - <% PortalContainer portalContainer = PortalContainer.getCurrentInstance(session.getServletContext()); UserPortalConfigService userPortalConfigService = portalContainer.getComponentInstanceOfType(UserPortalConfigService.class); diff --git a/layout-webapp/src/main/webapp/WEB-INF/jsp/siteNavigation.jsp b/layout-webapp/src/main/webapp/WEB-INF/jsp/siteNavigation.jsp index 5e6c2e3f..2ffe34d0 100644 --- a/layout-webapp/src/main/webapp/WEB-INF/jsp/siteNavigation.jsp +++ b/layout-webapp/src/main/webapp/WEB-INF/jsp/siteNavigation.jsp @@ -10,11 +10,26 @@ if (canManageSiteNavigation) { %>
+
diff --git a/layout-webapp/src/main/webapp/vue-app/site-navigation/components/SiteNavigation.vue b/layout-webapp/src/main/webapp/vue-app/site-navigation/components/SiteNavigation.vue index fda14560..f2de2b97 100644 --- a/layout-webapp/src/main/webapp/vue-app/site-navigation/components/SiteNavigation.vue +++ b/layout-webapp/src/main/webapp/vue-app/site-navigation/components/SiteNavigation.vue @@ -33,7 +33,7 @@ export default { }, computed: { isMobile() { - return this.$vuetify.breakpoint.width < 768 ; + return this.$vuetify.breakpoint.width < this.$vuetify.breakpoint.thresholds.sm; }, } }; diff --git a/layout-webapp/src/main/webapp/vue-app/site-navigation/components/SiteNavigationButton.vue b/layout-webapp/src/main/webapp/vue-app/site-navigation/components/SiteNavigationButton.vue index 254b6081..bdf6bf77 100644 --- a/layout-webapp/src/main/webapp/vue-app/site-navigation/components/SiteNavigationButton.vue +++ b/layout-webapp/src/main/webapp/vue-app/site-navigation/components/SiteNavigationButton.vue @@ -17,24 +17,21 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -->