Added editing posts

This commit is contained in:
tdgmcode 2023-03-18 23:02:25 -04:00
parent e323c22ba9
commit eec1873e28
7 changed files with 119 additions and 28 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -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>