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

Parent Display Flex Issue #45

Open
kamyar-nemati opened this issue Feb 15, 2022 · 0 comments
Open

Parent Display Flex Issue #45

kamyar-nemati opened this issue Feb 15, 2022 · 0 comments

Comments

@kamyar-nemati
Copy link

kamyar-nemati commented Feb 15, 2022

Placeholder-Loading is not showing up when the parent's "display" is set to "flex".

Edit:
It seems by manually setting the width of the placeholder-loading div containing it to "inherit" fixes the issue.

Code Example:
<div class="d-flex flex-column align-items-center bg-white shadow-sm tw-rounded-lg tw-w-80">
<div class="d-flex tw-pt-7 tw-pb-4">
...
</div>
<div v-if="postsLoaded" class="list-group">
<a v-for="post in posts" :key="post.index" :href="post.post_link" class="list-group-item list-group-item-action border-0 tw-px-8">
...
</a>
</div>
<div v-else style="width: inherit;">
<div class="ph-item">
<div class="ph-col-12">
<div class="ph-picture"></div>
<div class="ph-row">
<div class="ph-col-6 big"></div>
<div class="ph-col-4 empty big"></div>
<div class="ph-col-2 big"></div>
<div class="ph-col-4"></div>
<div class="ph-col-8 empty"></div>
<div class="ph-col-6"></div>
<div class="ph-col-6 empty"></div>
<div class="ph-col-12"></div>
</div>
</div>
</div>
</div>
<div class="d-flex justify-content-end w-100 tw-p-4">
...
</div>
</div>

Regards
Adam

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