Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,709
Community Members
 
Community Events
184
Community Groups

Is there a way to wrap the text in your card label when using the Composition Decks and Cards?

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.

1 answer

Hi @Phyllis Awkard

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:
Composition_Text_Wrap_CSS_Styling_Macros.png

Result:
Composition_Text_Wrap_CSS_Styling.png

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events