aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-28 00:08:07 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-28 00:08:07 +0300
commit35b06b4fc851192916e000ad5e7e2f458846448c (patch)
treef9a1536aae76a5058d26f8b82ddcf63e83f500cc /src/components
parent8f5278eb443864910dd9c2131c992d71e3af2d20 (diff)
working on thread uploading
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Comment.svelte24
-rw-r--r--src/components/Thread.svelte16
2 files changed, 20 insertions, 20 deletions
diff --git a/src/components/Comment.svelte b/src/components/Comment.svelte
index 09469cc..bc53f4d 100644
--- a/src/components/Comment.svelte
+++ b/src/components/Comment.svelte
@@ -8,24 +8,24 @@
<div class="commentbox" id="{comment.id}">
<span style="line-height: 2rem;">
- {comment.id}
+ <span style="font-family: mono">{comment.id}</span>
at {formatTime(comment.creationDate)} <br>
- -> <span style="{creatorColor(comment.commentCreator)}">
+ -> <span style="{creatorColor(comment.commentCreator)}; font-family: mono">
{comment.commentCreator}
</span> <br>
</span>
- {#if comment.imageId!= null && comment.imageId != undefined}
- {#if comment.fileType == 'image'}
- <a href="{comment.imageId}" target="_blank" rel="noopener noreferrer">
- <img src="{comment.imageId}" alt="{comment.imageId}" height="300px" width="300px"> <br>
- </a>
- {:else if comment.fileType == 'video'}
- <video width="320" height="240" controls muted>
- <source src="{comment.imageId}">
- </video>
- {/if}
+ {#if comment.imageId!= null && comment.imageId != undefined}
+ {#if comment.fileType == 'image'}
+ <a href="{comment.imageId}" target="_blank" rel="noopener noreferrer">
+ <img src="{comment.imageId}" alt="{comment.imageId}" height="300px" width="300px"> <br>
+ </a>
+ {:else if comment.fileType == 'video'}
+ <video width="320" height="240" controls muted>
+ <source src="{comment.imageId}">
+ </video>
{/if}
+ {/if}
<p>{@html comment.commentText}</p>
diff --git a/src/components/Thread.svelte b/src/components/Thread.svelte
index 8e07c9f..fee1a78 100644
--- a/src/components/Thread.svelte
+++ b/src/components/Thread.svelte
@@ -21,10 +21,10 @@
{#if thread.id != "rules"}
<div class="threadbox" id="{thread.id}">
<span style="line-height: 2rem;">
- <a href="/board/{board}/{thread.id}">{thread.id}</a>
+ <a href="/board/{board}/{thread.id}" style="font-family: mono">{thread.id}</a>
at {formatTime(thread.creationDate)} <br>
- -> <span style="{creatorColor(thread.threadCreator )}">
+ -> <span style="{creatorColor(thread.threadCreator )}; font-family: mono">
{thread.threadCreator}
</span > <br>
@@ -33,8 +33,8 @@
{#each replies as id}
<a href="/board/{board}/{thread.id}#{id}" onmouseover="document.getElementById('{id}').classList.add('targeted')" onmouseleave="document.getElementById('{id}').classList.remove('targeted')">>>{id}</a> &#xfeff
{/each}
- </span> <hr>
- {/if}
+ </span> <hr>
+ {/if}
</span>
@@ -60,15 +60,15 @@
{/if}
<style>
-.threadbox {
+ .threadbox {
width: 600px;
border: 10px solid green;
padding: 10px;
margin: 10px;
margin-left: 0px;
background-color: white;
-}
-:target, .targeted {
+ }
+ :target, .targeted {
background-color: #ffa;
-}
+ }
</style>