refactor(front): use `columns-per-item` prop for sections
This commit is contained in:
parent
779cdbd66d
commit
5e0efff73f
|
@ -76,9 +76,9 @@ watch(
|
|||
|
||||
<template>
|
||||
<Section
|
||||
:h2="title"
|
||||
align-left
|
||||
small-items
|
||||
:h2="title"
|
||||
:columns-per-item="3"
|
||||
>
|
||||
<inline-search-bar
|
||||
v-if="search"
|
||||
|
|
|
@ -73,7 +73,7 @@ watch([() => props.filters, page],
|
|||
<template>
|
||||
<Section
|
||||
align-left
|
||||
small-items
|
||||
:columns-per-item="3"
|
||||
:h2="title || undefined"
|
||||
>
|
||||
<Loader
|
||||
|
|
|
@ -110,9 +110,9 @@ watch(() => props.websocketHandlers.includes('Listen'), (to) => {
|
|||
|
||||
<template>
|
||||
<Section
|
||||
:h2="title"
|
||||
medium-items
|
||||
align-left
|
||||
:h2="title"
|
||||
:columns-per-item="4"
|
||||
>
|
||||
<Loader
|
||||
v-if="isLoading"
|
||||
|
|
|
@ -65,9 +65,9 @@ watch(() => props.url, () => {
|
|||
|
||||
<template>
|
||||
<Section
|
||||
:h2="title"
|
||||
align-left
|
||||
small-items
|
||||
:h2="title"
|
||||
:columns-per-item="3"
|
||||
>
|
||||
<Loader
|
||||
v-if="isLoading"
|
||||
|
|
|
@ -249,7 +249,7 @@ const getCurrentState = (target?: StateTarget): ReviewState => {
|
|||
<Loader v-if="isLoading" />
|
||||
<Section
|
||||
v-else-if="(result?.count ?? 0) > 0"
|
||||
small-items
|
||||
:columns-per-item="3"
|
||||
>
|
||||
<edit-card
|
||||
v-for="obj in result?.results ?? []"
|
||||
|
|
|
@ -70,7 +70,7 @@ watch(
|
|||
<template>
|
||||
<Section
|
||||
align-left
|
||||
small-items
|
||||
:columns-per-item="3"
|
||||
:h2="title"
|
||||
>
|
||||
<Loader
|
||||
|
|
|
@ -105,10 +105,13 @@ const recentActivity = ref(0)
|
|||
<!-- TODO: Translate Edit Link -->
|
||||
<Section
|
||||
:h1="props.username"
|
||||
:action="{ text:'Edit profile', to:'/settings' }"
|
||||
solid
|
||||
primary
|
||||
icon="bi-pencil-fill"
|
||||
:action="{
|
||||
text:'Edit profile',
|
||||
to:'/settings',
|
||||
primary: true,
|
||||
solid: true,
|
||||
icon: 'bi-pencil-fill'
|
||||
}"
|
||||
style="margin-top: 58px;"
|
||||
>
|
||||
<span style="grid-column: 1 / -1">
|
||||
|
|
Loading…
Reference in New Issue