refactor(front): use `columns-per-item` prop for sections
This commit is contained in:
parent
779cdbd66d
commit
5e0efff73f
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 ?? []"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue