Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Title not overflow the panel title #19

Open
superdiazzz opened this issue Aug 8, 2021 · 0 comments
Open

Make Title not overflow the panel title #19

superdiazzz opened this issue Aug 8, 2021 · 0 comments

Comments

@superdiazzz
Copy link

superdiazzz commented Aug 8, 2021

Hi, I have implement this library with this snippet code and the result will be like this. It seems the height of header are static size
Screen Shot 2021-08-08 at 11 43 23

<vue-collapsible-panel-group>
            <vue-collapsible-panel>
                <template #title>
                  <div class="flex flex-col">
                    <h3 class="text-lg font-semibold w-full">Kartu Kredit</h3>
                    <p class="text-sm">Visa, Mastercard</p>
                  </div>      
                </template>
                <template #content>
                    <div @click="currentSelect=1; paymentMethod='VC'" class="p-2 m-2 rounded flex justify-between cursor-pointer transform hover:bg-gray-400 hover:text-white">
                      <img class="w-28 object-cover rounded-lg" src="https://firebasestorage.googleapis.com/v0/b/skill-baru.appspot.com/o/general%2Fbank-logo%2Fthumbs%2Fvisa_200x200.png?alt=media&token=17699fc8-7b89-4b03-b857-df878fab2130" alt="kredit">
                      <h2 class="ml-5 text-sm">Kartu Kredit</h2>
                      <svg :class="currentSelect!=1?'text-gray-200': 'text-green-400'" class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
                    </div>  
                </template>
            </vue-collapsible-panel>
</vue-collapsible-panel-group>

How to reconcile with the header height? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant