parent
25aed70233
commit
5dd9fb6646
|
@ -5,7 +5,9 @@
|
||||||
>
|
>
|
||||||
<div class="search-result-container">
|
<div class="search-result-container">
|
||||||
<div class="search-result-attribute">{{ result.attribute }}</div>
|
<div class="search-result-attribute">{{ result.attribute }}</div>
|
||||||
<div class="search-result-value">{{ result.value.c }}</div>
|
<div class="search-result-value">
|
||||||
|
<Marquee>{{ result.value.c }}</Marquee>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
</template>
|
</template>
|
||||||
|
@ -13,8 +15,10 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { IEntry } from "@/types/base";
|
import { IEntry } from "@/types/base";
|
||||||
import { defineComponent, PropType } from "vue";
|
import { defineComponent, PropType } from "vue";
|
||||||
|
import Marquee from "./Marquee.vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
components: { Marquee },
|
||||||
name: "SearchResult",
|
name: "SearchResult",
|
||||||
props: {
|
props: {
|
||||||
result: {
|
result: {
|
||||||
|
@ -27,20 +31,18 @@ export default defineComponent({
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.search-result {
|
.search-result {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
border: 1px solid var(--foreground);
|
||||||
|
border-radius: 1rem;
|
||||||
|
|
||||||
.search-result-container {
|
.search-result-container {
|
||||||
display: flex;
|
padding: 1em;
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
border: 1px solid var(--foreground);
|
|
||||||
border-radius: 1rem;
|
|
||||||
|
|
||||||
margin: 0.5rem;
|
|
||||||
padding: 1rem;
|
|
||||||
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -51,15 +51,18 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-results {
|
.search-results {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat(5, 1fr);
|
||||||
|
gap: 0.5rem;
|
||||||
|
grid-auto-rows: minmax(100px, auto);
|
||||||
|
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
display: block;
|
display: block;
|
||||||
width: calc(100vw / 7);
|
width: calc(100vw / 7);
|
||||||
height: calc(100vw / 7);
|
height: calc(100vh / 6);
|
||||||
|
margin: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue