Update docs
This commit is contained in:
22
src/docs/AlbumsPreview/Image.svelte
Normal file
22
src/docs/AlbumsPreview/Image.svelte
Normal file
@@ -0,0 +1,22 @@
|
||||
<script>
|
||||
export let src
|
||||
export let alt
|
||||
</script>
|
||||
|
||||
<div class="image-container">
|
||||
<img {src} {alt} />
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.image-container {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
}
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user