[HOW TO] Fix Catalogue Table Columns
Posted
#6820
(In Topic #1775)

Standard member

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:

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:

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."
Posted

Site director

That said, I think we can call what you found a bug 0004292: Catalogue tabular view should auto-size - Composr CMS feature tracker
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- 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.
Posted

Standard member

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."
1 guest and 0 members have just viewed this.