refactor(front): use `columns-per-item` prop for sections

This commit is contained in:
upsiflu 2025-03-23 21:31:40 +01:00
parent 779cdbd66d
commit 5e0efff73f
7 changed files with 16 additions and 13 deletions

View File

@ -76,9 +76,9 @@ watch(
<template> <template>
<Section <Section
:h2="title"
align-left align-left
small-items :h2="title"
:columns-per-item="3"
> >
<inline-search-bar <inline-search-bar
v-if="search" v-if="search"

View File

@ -73,7 +73,7 @@ watch([() => props.filters, page],
<template> <template>
<Section <Section
align-left align-left
small-items :columns-per-item="3"
:h2="title || undefined" :h2="title || undefined"
> >
<Loader <Loader

View File

@ -110,9 +110,9 @@ watch(() => props.websocketHandlers.includes('Listen'), (to) => {
<template> <template>
<Section <Section
:h2="title"
medium-items
align-left align-left
:h2="title"
:columns-per-item="4"
> >
<Loader <Loader
v-if="isLoading" v-if="isLoading"

View File

@ -65,9 +65,9 @@ watch(() => props.url, () => {
<template> <template>
<Section <Section
:h2="title"
align-left align-left
small-items :h2="title"
:columns-per-item="3"
> >
<Loader <Loader
v-if="isLoading" v-if="isLoading"

View File

@ -249,7 +249,7 @@ const getCurrentState = (target?: StateTarget): ReviewState => {
<Loader v-if="isLoading" /> <Loader v-if="isLoading" />
<Section <Section
v-else-if="(result?.count ?? 0) > 0" v-else-if="(result?.count ?? 0) > 0"
small-items :columns-per-item="3"
> >
<edit-card <edit-card
v-for="obj in result?.results ?? []" v-for="obj in result?.results ?? []"

View File

@ -70,7 +70,7 @@ watch(
<template> <template>
<Section <Section
align-left align-left
small-items :columns-per-item="3"
:h2="title" :h2="title"
> >
<Loader <Loader

View File

@ -105,10 +105,13 @@ const recentActivity = ref(0)
<!-- TODO: Translate Edit Link --> <!-- TODO: Translate Edit Link -->
<Section <Section
:h1="props.username" :h1="props.username"
:action="{ text:'Edit profile', to:'/settings' }" :action="{
solid text:'Edit profile',
primary to:'/settings',
icon="bi-pencil-fill" primary: true,
solid: true,
icon: 'bi-pencil-fill'
}"
style="margin-top: 58px;" style="margin-top: 58px;"
> >
<span style="grid-column: 1 / -1"> <span style="grid-column: 1 / -1">