You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have several titles I'm using as headers for decks and cards in the Composition app. I want the headers to text wrap as appropriate and am looking for CSS code that can work.
Danny from ServiceRocket here.
Thanks for raising this question, and with our Card macro supporting custom CSS stylings, I've done a few tests regarding your use-case that can be achieved via the CSS below:
.aui-tabs.horizontal-tabs .tabs-menu a {
max-width: 300px;
word-wrap: break-word;
white-space: normal;
}
The CSS Classes referenced would point to all the Cards that are located inside of the horizontal Deck of Cards location.
As for the CSS properties, 'max-width' controls the width of your Card Label, 'word-wrap: break-word' allows for long words to be broken and wrapped into the next line, while 'white-space: normal' allows for text wraps and break lines when necessary.
With this, you can create a custom CSS file (i.e. textWrap.css) attaching it to your page's attachments, while utilizing the Composition Setup macro to import its link. Thereafter, shall you have any changes in the future, you can simply update the attachment CSS file.
Macros example:
Result:
Hope this helps!
If you have any further questions regarding your our product, feel free to reach out to us via our Support Portal or Drift chat
Thanks & Best Regards,
Danny
ServiceRocket Apps Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.