slight fixes to search

feat/vaults
Tomáš Mládek 2021-06-19 18:53:43 +02:00
parent bacf5d0994
commit 18e1deec5f
2 changed files with 20 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<router-link <router-link
:to="{ name: 'inspect', params: { address: result.entity } }" :to="{ name: 'browse', params: { addresses: [result.entity] } }"
class="search-result" class="search-result"
> >
<div class="search-result-container"> <div class="search-result-container">
@ -28,9 +28,19 @@ export default defineComponent({
<style scoped lang="scss"> <style scoped lang="scss">
.search-result { .search-result {
.search-result-container { .search-result-container {
box-shadow: var(--sl-shadow-medium); display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid var(--foreground);
border-radius: 1rem;
margin: 0.5rem; margin: 0.5rem;
padding: 1rem; padding: 1rem;
width: 100%;
height: 100%;
} }
text-align: center; text-align: center;

View File

@ -2,7 +2,7 @@
<div class="search"> <div class="search">
<ul class="search-results" v-if="results"> <ul class="search-results" v-if="results">
<li v-for="[identity, result] in Object.entries(results)" :key="identity"> <li v-for="[identity, result] in Object.entries(results)" :key="identity">
<SearchResult :result="result" /> <SearchResult class="result" :result="result" />
</li> </li>
</ul> </ul>
</div> </div>
@ -45,6 +45,11 @@ export default defineComponent({
</script> </script>
<style lang="scss"> <style lang="scss">
.search,
.search-results {
width: 100%;
}
.search-results { .search-results {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -53,7 +58,8 @@ export default defineComponent({
li { li {
display: block; display: block;
width: calc(100% / 6); width: calc(100vw / 7);
height: calc(100vw / 7);
} }
} }
</style> </style>