WIP: Add + on book list element
All checks were successful
Test / runtest (push) Successful in 2h10m39s

This commit is contained in:
2025-10-14 16:51:43 +02:00
parent 8e7eed7712
commit ddb48d9ced

View File

@@ -3,6 +3,7 @@
const props = defineProps({
title: String,
author: String,
id: BigInt,
imagePath: String,
});
const imagePathOrDefault = (props.imagePath == "" || typeof props.imagePath === 'undefined') ? "../defaultbook.png" : props.imagePath;
@@ -11,8 +12,15 @@ const imagePathOrDefault = (props.imagePath == "" || typeof props.imagePath ===
</script>
<template>
<div class="box container has-background-dark">
<div class="media">
<div class="columns box container has-background-dark">
<div class="column is-narrow">
<button class="button">
<span class="icon" title="Add">
<b-icon-plus />
</span>
</button>
</div>
<div class="media column">
<div class="media-left">
<figure class="image mb-3">
<img v-bind:src="imagePathOrDefault" v-bind:alt="title">