prime blocks blocks are not reactive

Forum rules
Please note that response time for technical support is within 3-5 business days.
elliopitas
Posts: 10
Joined: 28 Jul 2022, 22:25

18 Feb 2023, 01:15

for example lets take reactivityTest.vue file its is just copy pasted not modified at all.
I'm using Nuxt 3.0.0

Code: Select all

<template>
<div class="flex surface-section">
    <div class="w-12 sm:w-6 px-4 py-8 md:px-6 lg:px-8">
        <div class="border-left-2 border-pink-500">
            <span class="bg-white text-pink-500 font-bold text-2xl inline-block px-3">404</span>
        </div>
        <div class="mt-6 mb-5 font-bold text-6xl text-900">Page Not Found</div>
        <p class="text-700 text-3xl mt-0 mb-6">Sorry, we couldn't find the page.</p>
        <div>
            <Button class="p-button-text mr-2" label="Go Back" icon="pi pi-arrow-left"></Button>
            <Button label="Go to Dashboard" icon="pi pi-home"></Button>
        </div>
    </div>
    <div class="w-6 hidden sm:block" style="background: url('/images/404.png') no-repeat; background-size: cover">
    </div>
</div>
</template>

<script setup lang="ts">
import Button from 'primevue/button';
</script>
looks like this
Image
Image

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

20 Feb 2023, 08:50

It's completely about by design. You could modify the code as you wish.

elliopitas
Posts: 10
Joined: 28 Jul 2022, 22:25

20 Feb 2023, 19:16

yes that's not the problem i know I can do that its that in the demo on the prime blocks it is responsive and scales for phones like this
Image
Image
but it doesn't for me

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

21 Feb 2023, 16:12

What do you mean not reactive? There is no javascript in this block in terms of Vue reactivity.

elliopitas
Posts: 10
Joined: 28 Jul 2022, 22:25

23 Feb 2023, 20:49

cagatay.civici wrote:
21 Feb 2023, 16:12
What do you mean not reactive? There is no javascript in this block in terms of Vue reactivity.
sorry I meant responsive

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

24 Feb 2023, 19:49

elliopitas wrote:
20 Feb 2023, 19:16
yes that's not the problem i know I can do that its that in the demo on the prime blocks it is responsive and scales for phones like this
Image
Image
but it doesn't for me
Actually, this block is responsive. You could see it from Chrome developer tools, it has .hidden.sm-block classes.

Me_libra
Posts: 1
Joined: 16 Feb 2023, 23:24

25 Feb 2023, 21:29

tugce.kucukoglu wrote:
24 Feb 2023, 19:49
elliopitas wrote:
20 Feb 2023, 19:16
yes that's not the problem i know I can do that its that in the demo on the prime blocks it is responsive and scales for phones like this
Image
Image
but it doesn't for me
Actually, this block is responsive. You could see it from Chrome developer tools, it has .hidden.sm-block classes.
Oh ok, Thanks for the guide.
I was actually unaware of this.
Last edited by Me_libra on 04 Mar 2023, 20:46, edited 1 time in total.

elliopitas
Posts: 10
Joined: 28 Jul 2022, 22:25

26 Feb 2023, 15:17

i think its because sm doesn't work on my project for some reason correctly. for example if I do this

Code: Select all

<template>
<div class="sm:text-5xl">
    <TheNavbar/>
    <slot />
</div>
</template>
it still applies it when the browser is fullscreen on my monitor
Image

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

27 Feb 2023, 08:13

The screenshot could not help to understand the problem. You could check it from browser developer tools.

elliopitas
Posts: 10
Joined: 28 Jul 2022, 22:25

02 Mar 2023, 03:33

what do you want exactly from the developer tools?
As you can see here for example applies the small classes even when the window is clearly big.
Image

Post Reply

Return to “PrimeBlocks for PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests