Skip to content

Commit

Permalink
chore: style
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Apr 11, 2024
1 parent 3b4ad44 commit da16bf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions components/flow/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@ provide('flow', props.flow)
<div class="flow">
<FlowHeader v-if="props.header" :id="props.flow!.id" :title="props.flow!.title" :url="props.flow!.homepage" />

<div
class="flow-body" :class="[
props.flow!.configCard === 'gallery' ? 'n-gallery' : 'n-grid',
]"
>
<NuxtLink
v-for="(module) in props.flow!.module" :key="module.url" :title="module.title" :to="module.url"
target="_blank"
>
<div class="flow-body" :class="[

Check warning on line 24 in components/flow/Index.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected a linebreak before this attribute
props.flow!.configCard === 'gallery' ? 'n-gallery' : 'n-grid',
]">

Check warning on line 26 in components/flow/Index.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected 1 line break before closing bracket, but no line breaks found
<NuxtLink v-for="(module) in props.flow!.module" :key="module.url" :title="module.title" :to="module.url"

Check warning on line 27 in components/flow/Index.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected a linebreak before this attribute
target="_blank">

Check warning on line 28 in components/flow/Index.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected 1 line break before closing bracket, but no line breaks found
<ModuleList v-if="props.flow!.configCard === 'list'" v-bind="{ module }" />
<ModuleProject v-else-if="props.flow!.configCard === 'project'" v-bind="{ module }" />
<ModuleGallery v-else-if="props.flow!.configCard === 'gallery'" v-bind="{ module }" />
Expand All @@ -49,8 +45,9 @@ provide('flow', props.flow)
}
.flow-body.n-gallery {
@apply columns-3 gap-4;
@apply columns-1 gap-4 lg:columns-2 xl:columns-3 2xl:columns-4;
}
.flow-body .module {
@apply mb-4;
}
Expand Down
2 changes: 1 addition & 1 deletion components/module/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const props = defineProps<Props>()
{{ formatDateTime(module.date) }}
</div>
</div>
<div v-if="props.module.image" class="shadow-sm border rounded-2xl relative overflow-hidden">
<div v-if="props.module.image" class="min-h-[68px] shadow-sm border rounded-2xl relative overflow-hidden">
<NuxtImg
class="w-full" format="webp" :src="props.module!.image" :alt="module.title"
referrerpolicy="no-referrer" loading="lazy" width="420px"
Expand Down

0 comments on commit da16bf9

Please sign in to comment.