From 969c3bbdd5ea1f86b70c60d6af6eb408da047115 Mon Sep 17 00:00:00 2001 From: StroepWafel Date: Thu, 25 Jun 2026 19:01:00 +0930 Subject: [PATCH] fix(cloud PFP): button placement --- .../ProfilePictureSetting.svelte | 97 ++++++++++--------- 1 file changed, 53 insertions(+), 44 deletions(-) diff --git a/src/plugins/built-in/profilePicture/ProfilePictureSetting.svelte b/src/plugins/built-in/profilePicture/ProfilePictureSetting.svelte index 9aec678e..2a35d6b1 100644 --- a/src/plugins/built-in/profilePicture/ProfilePictureSetting.svelte +++ b/src/plugins/built-in/profilePicture/ProfilePictureSetting.svelte @@ -112,57 +112,66 @@ } -
- {#if useCloudPfp} -
- +
+
+ {#if useCloudPfp} + -
- {#if cloudRefreshError} -

{cloudRefreshError}

+ {/if} - {/if} -
value ? null : triggerSelect()} - ondragover={(e) => { e.stopPropagation(); dragging = true }} - ondragleave={() => dragging = false} - ondrop={onDrop} - onkeydown={(e) => { - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault() - triggerSelect() - } - }} - role="button" - tabindex="0" - > - {#if value} - Profile - - {:else} -
- {'\ued47'} - Upload -
- {/if} - - {#if dragging} -
- {/if} +
(value ? null : triggerSelect())} + ondragover={(e) => { e.stopPropagation(); dragging = true }} + ondragleave={() => dragging = false} + ondrop={onDrop} + onkeydown={(e) => { + if (e.key === 'Enter' || e.key === ' ') { + e.preventDefault() + triggerSelect() + } + }} + role="button" + tabindex="0" + > + {#if value} +
+ Local profile + +
+ {:else} +
+ {'\ued47'} + Upload +
+ {/if} + + {#if dragging} +
+ {/if} +
+ {#if cloudRefreshError} +

{cloudRefreshError}

+ {/if}