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

docs: fix page overflow #2332

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
</div>

<template #title>
<span v-html="page.hero?.title" />

Check warning on line 63 in docs/pages/index.vue

View workflow job for this annotation

GitHub Actions / ubuntu

'v-html' directive can lead to XSS attack
</template>
<template #description>
<span v-html="page.hero?.description" />

Check warning on line 66 in docs/pages/index.vue

View workflow job for this annotation

GitHub Actions / ubuntu

'v-html' directive can lead to XSS attack
</template>
<template #links>
<UButton
Expand Down Expand Up @@ -98,11 +98,11 @@

<ULandingSection v-for="(section, index) of page.sections" :key="index" v-bind="section">
<template v-if="section.title" #title>
<span v-html="section?.title" />

Check warning on line 101 in docs/pages/index.vue

View workflow job for this annotation

GitHub Actions / ubuntu

'v-html' directive can lead to XSS attack
</template>

<template v-if="section.description" #description>
<span v-html="section.description" />

Check warning on line 105 in docs/pages/index.vue

View workflow job for this annotation

GitHub Actions / ubuntu

'v-html' directive can lead to XSS attack
</template>

<template #features>
Expand All @@ -125,11 +125,11 @@
:ui="{ links: 'mt-8 flex flex-wrap justify-center lg:justify-start gap-x-3 gap-y-1.5', base: 'text-center lg:text-left flex flex-col items-center lg:items-start' }"
>
<template v-if="section.subTitle" #title>
<span v-html="section?.subTitle" />

Check warning on line 128 in docs/pages/index.vue

View workflow job for this annotation

GitHub Actions / ubuntu

'v-html' directive can lead to XSS attack
</template>

<template v-if="section.subDescription" #description>
<span v-html="section.subDescription" />

Check warning on line 132 in docs/pages/index.vue

View workflow job for this annotation

GitHub Actions / ubuntu

'v-html' directive can lead to XSS attack
</template>

<template #links>
Expand Down Expand Up @@ -195,13 +195,13 @@
}"
>
<template #title>
<span v-html="section.subTitle" />

Check warning on line 198 in docs/pages/index.vue

View workflow job for this annotation

GitHub Actions / ubuntu

'v-html' directive can lead to XSS attack
</template>

<template #links>
<UAvatarGroup :max="13" size="md" class="flex-wrap lg:self-start [&_span:first-child]:text-xs">
<UTooltip
v-for="(contributor, index) of module.contributors"

Check warning on line 204 in docs/pages/index.vue

View workflow job for this annotation

GitHub Actions / ubuntu

Variable 'index' is already declared in the upper scope
:key="index"
:text="contributor.username"
class="rounded-full"
Expand Down Expand Up @@ -255,7 +255,7 @@

<template #meet-studio>
<ul class="flex flex-wrap space-x-4 lg:px-28 xl:px-40 items-center justify-center sm:-mt-16">
<li v-for="(item, index) in section.list" :key="index" class="my-2">

Check warning on line 258 in docs/pages/index.vue

View workflow job for this annotation

GitHub Actions / ubuntu

Variable 'index' is already declared in the upper scope
<UIcon name="i-ph-check" class="w-4 h-4 text-green-400 mr-2" />
<span class="text-gray-200 text-lg">{{ item }}</span>
</li>
Expand Down Expand Up @@ -336,6 +336,7 @@
.gradient {
position: absolute;
top: 25vh;
left: 0;
width: 100%;
height: 30vh;
background: radial-gradient(50% 50% at 50% 50%, #00DC82 0%, rgba(0, 220, 130, 0) 100%);
Expand Down