slight fixes to search
parent
bacf5d0994
commit
18e1deec5f
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue