Added editing posts
This commit is contained in:
parent
e323c22ba9
commit
eec1873e28
7 changed files with 119 additions and 28 deletions
|
@ -97,7 +97,7 @@
|
|||
Failed to get post.
|
||||
</p>
|
||||
</Area>
|
||||
{:else}
|
||||
{:else if content}
|
||||
<Area>
|
||||
<span slot="header" id='header'>
|
||||
<img class='pfp' src='/img/pfp/{username}.png'/>
|
||||
|
@ -130,6 +130,11 @@
|
|||
data={''}
|
||||
icon='/delete.svg'
|
||||
/>
|
||||
<PostButton
|
||||
href='/new_post?edit={id}'
|
||||
data={''}
|
||||
icon='/edit.svg'
|
||||
/>
|
||||
{/if}
|
||||
{#if id}
|
||||
<PostButton
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<style>
|
||||
img, video {
|
||||
max-width: 100px;
|
||||
max-width: 200px;
|
||||
max-height: 200px;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.only-img {
|
||||
max-width: 200px;
|
||||
max-height: 450px;
|
||||
max-width: 300px;
|
||||
max-height: 300px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import Button from '$lib/components/Button.svelte';
|
||||
import {setLocation} from '$lib/util.js';
|
||||
|
||||
export let data, noRatings;
|
||||
export let data, noRatings = false;
|
||||
</script>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue