Minor UI fix

This commit is contained in:
tdgmcode 2023-03-19 20:17:30 -04:00
parent 8f29503565
commit 945cedd035
2 changed files with 25 additions and 19 deletions

View file

@ -91,17 +91,18 @@
</div> </div>
</span> </span>
<span slot="main"> <span slot="main">
<p class='data'> <div class='sections'>
<span class='follower'> <div>
<b>{userData.reputation}</b> Reputation <p class='data'>
</span> <span class='follower'>
<span class='follower'> <b>{userData.reputation}</b> reputation <b>(+{userData.upvotes}) (-{userData.downvotes})</b>
<b>{userData.upvotes}</b> Upvotes </span>
</span> </p>
<span class='follower'> </div>
<b>{userData.downvotes}</b> Downvotes <div>
</span>
</p> </div>
</div>
{#if userData.rolesArr} {#if userData.rolesArr}
<p> <p>
@ -113,7 +114,7 @@
<div class='sections'> <div class='sections'>
<div> <div>
<h2>{following.length} following</h2> <p><b>{following.length}</b> following</p>
{#each following as user} {#each following as user}
<a href='/users/{user.following}'> <a href='/users/{user.following}'>
<img class='pfp-small' src='/img/pfp/{user.following}.png'/> <img class='pfp-small' src='/img/pfp/{user.following}.png'/>
@ -122,7 +123,7 @@
</div> </div>
<div> <div>
<h2>{followers.length} followers</h2> <p><b>{followers.length}</b> followers</p>
{#each followers as user} {#each followers as user}
<a href='/users/{user.username}'> <a href='/users/{user.username}'>
<img class='pfp-small' src='/img/pfp/{user.username}.png'/> <img class='pfp-small' src='/img/pfp/{user.username}.png'/>
@ -131,10 +132,15 @@
</div> </div>
</div> </div>
{#if data.resAcc.data == userData.username} <div class='sections'>
<h2>Set PFP</h2> <div>
<FileUpload bind:form={uploadForm} type='small' apiUrl={'/api/pfp'}/> {#if data.resAcc.data == userData.username}
{/if} <h2>Set PFP</h2>
<FileUpload bind:form={uploadForm} type='small' apiUrl={'/api/pfp'}/>
{/if}
</div>
</div>
</span> </span>
<span slot="footer"> <span slot="footer">

View file

@ -40,11 +40,11 @@
inkscape:collect="always" inkscape:collect="always"
id="linearGradient1587"> id="linearGradient1587">
<stop <stop
style="stop-color:#d5effa;stop-opacity:1;" style="stop-color:#d5f7fa;stop-opacity:1;"
offset="0" offset="0"
id="stop1583" /> id="stop1583" />
<stop <stop
style="stop-color:#d3e4ff;stop-opacity:1;" style="stop-color:#a3c7ff;stop-opacity:1;"
offset="1" offset="1"
id="stop1585" /> id="stop1585" />
</linearGradient> </linearGradient>

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB