add upvote count, fix loading issues
This commit is contained in:
parent
55455c1693
commit
cd92a4b12e
4 changed files with 70 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
|||
import PostMeta from "./PostMeta.svelte";
|
||||
import GuildMenu from "./GuildMenu.svelte";
|
||||
import { SvelteShowdown } from "svelte-showdown";
|
||||
import VoteButton from "./VoteButton.svelte";
|
||||
|
||||
|
||||
|
||||
|
|
@ -32,6 +33,7 @@ let { title, created_at, id, content = '', to } = post;
|
|||
</div><!-- .post-body -->
|
||||
<div class="message-stats">
|
||||
<!-- upvotes / downvotes -->
|
||||
<VoteButton />
|
||||
</div>
|
||||
<ul class="message-options row">
|
||||
</ul>
|
||||
|
|
@ -56,7 +58,23 @@ let { title, created_at, id, content = '', to } = post;
|
|||
</SLayout>
|
||||
|
||||
<style>
|
||||
.post-frame {
|
||||
position: relative;
|
||||
}
|
||||
.post-content {
|
||||
overflow-x: auto;
|
||||
}
|
||||
.post-body {
|
||||
margin-inline-start: 3em;
|
||||
}
|
||||
.message-stats {
|
||||
position: absolute;
|
||||
inset-inline-start: 0;
|
||||
top: 0;
|
||||
width: 3em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue