Add file viewer branding options
This commit is contained in:
22
svelte/src/file_viewer/CustomBanner.svelte
Normal file
22
svelte/src/file_viewer/CustomBanner.svelte
Normal file
@@ -0,0 +1,22 @@
|
||||
<script>
|
||||
export let src = ""
|
||||
export let border_top = false;
|
||||
</script>
|
||||
|
||||
{#if src}
|
||||
<div class:border_top>
|
||||
<img class="image" src="{src}" alt="User-provided banner"/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.border_top {
|
||||
border-top: solid 1px var(--layer_2_color_border);
|
||||
}
|
||||
.image {
|
||||
display: block;
|
||||
margin: auto;
|
||||
max-height: 100px;
|
||||
max-width: 100%;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user