EmanueleDB
EmanueleDB
NNuxt
Created by EmanueleDB on 4/18/2025 in #❓・help
Nuxt UI UTooltip opened by default if its in the #header slot of a UModal
UTooltip opened by default if its in the #header slot of a UModal, the same tooltip in the #footer slot works as expected
<UModal
v-model:open="openSettingsModal"
:close="false"
:dismissible="false"
:ui="{
content: 'dark:bg-gray-800 dark:ring-gray-400'
}"
>
<template #header>
<div class="flex w-full justify-between items-center">
<h2>Settings</h2>
<UTooltip
text="Virtual Tour"
:content="{ align: 'center', side: 'top' }"
>
<UButton
v-if="isActive"
icon="mdi:compass-outline"
size="md"
color="notRequested"
variant="solid"
class="hidden md:inline-flex"
@click="something"
/>
</UTooltip>
</div>
</template>
<template #body>
...
<UModal
v-model:open="openSettingsModal"
:close="false"
:dismissible="false"
:ui="{
content: 'dark:bg-gray-800 dark:ring-gray-400'
}"
>
<template #header>
<div class="flex w-full justify-between items-center">
<h2>Settings</h2>
<UTooltip
text="Virtual Tour"
:content="{ align: 'center', side: 'top' }"
>
<UButton
v-if="isActive"
icon="mdi:compass-outline"
size="md"
color="notRequested"
variant="solid"
class="hidden md:inline-flex"
@click="something"
/>
</UTooltip>
</div>
</template>
<template #body>
...
6 replies
NNuxt
Created by EmanueleDB on 3/14/2025 in #❓・help
Nuxt UI 2.21.1 migration to v 3.0.0
I'm trying to migrate Nuxt Ui from version 2.21.1 to version 3.0.0, but I get some errors. I'm running Nuxt 3.16 and my current implementation is /app/assets/css/tailwind.css
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
@apply font-montserrat;
}

/*Fonts*/

@layer utilities {
.font-montserrat {
font-family: Montserrat, sans-serif;
}
}
@layer utilities {
.font-inconsolata {
font-family: Inconsolata, monospace;
}
}

/*Typography*/

@layer base {
h1 {
@apply text-xl font-semibold lg:text-3xl;
}
h2 {
@apply text-lg font-semibold lg:text-2xl;
}
h3 {
@apply text-base font-semibold lg:text-xl;
}
h4 {
@apply text-sm font-semibold lg:text-lg;
}
p {
@apply text-sm font-normal lg:text-base;
}
}
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
@apply font-montserrat;
}

/*Fonts*/

@layer utilities {
.font-montserrat {
font-family: Montserrat, sans-serif;
}
}
@layer utilities {
.font-inconsolata {
font-family: Inconsolata, monospace;
}
}

/*Typography*/

@layer base {
h1 {
@apply text-xl font-semibold lg:text-3xl;
}
h2 {
@apply text-lg font-semibold lg:text-2xl;
}
h3 {
@apply text-base font-semibold lg:text-xl;
}
h4 {
@apply text-sm font-semibold lg:text-lg;
}
p {
@apply text-sm font-normal lg:text-base;
}
}
89 replies
NNuxt
Created by EmanueleDB on 4/5/2024 in #❓・help
script-src console errors after updating dependencies
No description
2 replies