mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-24 07:15:24 -07:00
show images on cards
This commit is contained in:
parent
ba87b92fea
commit
8d7c9da220
1 changed files with 18 additions and 18 deletions
|
@ -2,7 +2,6 @@
|
||||||
<v-card
|
<v-card
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
style="border-color: lightgrey;"
|
style="border-color: lightgrey;"
|
||||||
nuxt
|
|
||||||
:to="link.to"
|
:to="link.to"
|
||||||
height="100%"
|
height="100%"
|
||||||
class="d-flex flex-column mt-4"
|
class="d-flex flex-column mt-4"
|
||||||
|
@ -12,8 +11,8 @@
|
||||||
class="pa-2 mx-auto"
|
class="pa-2 mx-auto"
|
||||||
>
|
>
|
||||||
<v-img
|
<v-img
|
||||||
max-width="150px"
|
width="150px"
|
||||||
max-height="125"
|
height="125"
|
||||||
:src="image"
|
:src="image"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -33,13 +32,14 @@
|
||||||
class="py-2 px-10 my-auto"
|
class="py-2 px-10 my-auto"
|
||||||
>
|
>
|
||||||
<v-img
|
<v-img
|
||||||
max-width="150px"
|
width="150px"
|
||||||
max-height="125"
|
height="125"
|
||||||
:src="image"
|
:src="image"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<v-divider class="mt-auto" />
|
<v-spacer />
|
||||||
|
<v-divider />
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-btn
|
<v-btn
|
||||||
variant="text"
|
variant="text"
|
||||||
|
@ -52,15 +52,14 @@
|
||||||
</v-card>
|
</v-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
interface LinkProp {
|
interface LinkProp {
|
||||||
text: string;
|
text: string;
|
||||||
url?: string;
|
url?: string;
|
||||||
to: string;
|
to: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defineNuxtComponent({
|
const props = defineProps({
|
||||||
props: {
|
|
||||||
link: {
|
link: {
|
||||||
type: Object as () => LinkProp,
|
type: Object as () => LinkProp,
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -70,6 +69,7 @@ export default defineNuxtComponent({
|
||||||
required: false,
|
required: false,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log("Props", props);
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue