[HOW TO] Fix Catalogue Table Columns

Post

Posted
Rating:
#6820 (In Topic #1775)
Avatar
Standard member
mythus is in the usergroup ‘Community saint’

How to fix the column width so things display better

Greetings,

It is possible that this only bugged me. However, I solved it for myself and thought I'd share with you wonderful folks!

While embeding some catalogues into wiki pages, I noticed something I didn't like. The column widths were all the same width and this not only caused the columns with more info to get longer, sometimes words would overlap the column borders. See the screenshot below:

Screenshot_cataloguefixedwidtherror.png

Well, I didn't like this, so I fixed it. By editing my theme's global.css: 






Code

.wide_table {
    width: 100%;
   {+START,IF,{$EQ,{$LANG},EN}}
        table-layout: fixed;   <— comment this line out
    {+END}
}



As noted in the comment, I commented out the "table-layout:fixed;" line. This gave me a far better looking result:

Screenshot_cataloguefixedwidtherrorresolved.png

As you can see, no more words spilling into the next column and things seem to fit and look better IMO. It still maintains its overflow factor, so still fine for phones. 


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#6826
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
I appreciate your how-to.
That said, I think we can call what you found a bug https://compo.sr/tracker/view.php?id=4292


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#6831
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
This is actually quite amusing. I felt like it wasn't right but thought you must have a good reason it.


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

deepu_ms, Vaiva, bobmiers, Philip, MVLipwig, ManojSree

Forum statistics: Birthdays:
Back to Top