How to make the Accordion tab's title responsive?

112 Views Asked by At

The title can sometimes be a long string but I need to show it whole.

<p:accordionPanel cache="false" value="#{tasksBean.getTasks()}"
                  var="task" activeIndex="null">
    <p:tab>
        <f:facet name="title">
             <h:outputText  value="loremIpsumloremIpsumlorem
                                   IpsumloremIpsumloremIpsum
                                   loremIpsumloremIpsumlorem
                                   IpsumloremIpsumloremIpsuml"/>
        </f:facet>
    </p:tab>
</p:accordionPanel>
1

There are 1 best solutions below

0
Jaqen H'ghar On

Could you try with

.ui-accordion-header.ui-helper-reset.ui-state-default {
    white-space: nowrap;
    display: inline-block;
}