You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2022/05/03 09:00:37 UTC

[myfaces-tobago] branch tobago-5.x updated: fix(demo): layout

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-5.x by this push:
     new cfef085b45 fix(demo): layout
cfef085b45 is described below

commit cfef085b45ae27e91c268f398c9a40838b7a5977
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Tue May 3 11:00:05 2022 +0200

    fix(demo): layout
    
    On some sites the content moves under the navigation, although there is enough space.
---
 tobago-example/tobago-example-demo/src/main/webapp/main.xhtml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/main.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/main.xhtml
index f2fa4ee8e2..c06bda727a 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/main.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/main.xhtml
@@ -52,11 +52,9 @@
       <ui:include src="/menu.xhtml"/>
 
       <tc:panel>
-        <tc:style maxWidth="#{navigationState.viewSource ? '' : '1140px'}"
-                  marginLeft="auto"
-                  marginRight="auto"/>
+        <tc:style customClass="#{navigationState.viewSource ? '' : 'container-lg'}"/>
 
-        <tc:segmentLayout small="#{navigationState.viewSource ? '2seg 10seg' : 'auto 1fr'}">
+        <tc:segmentLayout small="4seg 8seg" medium="3seg 9seg" large="2seg 10seg">
           <tc:panel>
             <ui:include src="/navigation.xhtml"/>
           </tc:panel>