Skip to content

Commit

Permalink
fix(manager): fix desc of some plugins is truncated, fix #705
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jun 19, 2022
1 parent 3023dbb commit 67584e5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
10 changes: 4 additions & 6 deletions plugins/frontend/client/client/components/form/group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
:class="{ invalid: entries.filter(e => e[0] === key).length > 1 }">
<template #left>
<h3 v-if="schema.type === 'array'">
<span class="prefix">{{ prefix.slice(0, -1) }}[</span>
<span>{{ key }}</span>
<span class="prefix">]</span>
<span class="prefix">{{ prefix.slice(0, -1) }}</span>
<span>[{{ key }}]</span>
</h3>
<h3 v-else>
<span class="prefix">{{ prefix }}</span>
Expand Down Expand Up @@ -53,9 +52,8 @@
<el-dropdown-item command="delete">删除</el-dropdown-item>
</template>
<h3 v-if="schema.type === 'array'">
<span class="prefix">{{ prefix.slice(0, -1) }}[</span>
<span>{{ key }}</span>
<span class="prefix">]</span>
<span class="prefix">{{ prefix.slice(0, -1) }}</span>
<span>[{{ key }}]</span>
</h3>
<h3 v-else>
<span class="prefix">{{ prefix }}</span>
Expand Down
9 changes: 3 additions & 6 deletions plugins/frontend/manager/client/market/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ import PackageView from './package.vue'
const route = useRoute()
const words = reactive([])
watch(() => route.query.keyword, (keyword) => {
words.splice(0, Infinity, ...Array.isArray(keyword) ? keyword : (keyword || '').split(' '))
if (words[words.length - 1]) words.push('')
}, { immediate: true })
const { keyword } = route.query
const words = reactive(Array.isArray(keyword) ? keyword : (keyword || '').split(' '))
if (words[words.length - 1]) words.push('')
const realWords = computed(() => words.filter(w => w))
Expand Down
10 changes: 5 additions & 5 deletions plugins/frontend/manager/client/market/package.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,26 @@ const email = computed(() => props.data.author?.email)
margin: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
header, footer {
margin: 1rem 0;
}
.k-card-body {
margin: 0;
margin: -1rem 0;
flex-grow: 1;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-evenly;
}
.desc {
margin: 0;
font-size: 15px;
}
.badges {
margin-top: 1.25rem;
}
header, footer {
flex-shrink: 0;
}
Expand Down

0 comments on commit 67584e5

Please sign in to comment.