fix: make global/local share options icons
This commit is contained in:
1 parent
2b0d36ef43
commit
de58dd275f
2 files changed
+24
-11
No files matched your search
@@ -15,8 +15,10 @@
|
|||||||
Eye,
|
Eye,
|
||||||
EyeSlash,
|
EyeSlash,
|
||||||
Flag,
|
Flag,
|
||||||
|
GlobeAmericas,
|
||||||
Icon,
|
Icon,
|
||||||
Language,
|
Language,
|
||||||
|
MapPin,
|
||||||
Newspaper,
|
Newspaper,
|
||||||
PencilSquare,
|
PencilSquare,
|
||||||
ServerStack,
|
ServerStack,
|
||||||
@@ -300,17 +302,28 @@
|
|||||||
>
|
>
|
||||||
<Icon src={Share} size="16" micro slot="prefix" />
|
<Icon src={Share} size="16" micro slot="prefix" />
|
||||||
{$t('post.actions.more.share')}
|
{$t('post.actions.more.share')}
|
||||||
|
<div class="flex-1" />
|
||||||
{#if !post.post.local}
|
{#if !post.post.local}
|
||||||
<Switch
|
<div class="flex">
|
||||||
optionNames={[
|
<Button
|
||||||
$t('filter.location.global'),
|
color={!localShare ? 'primary' : 'secondary'}
|
||||||
$t('filter.location.local'),
|
size="square-md"
|
||||||
]}
|
roundingSide="left"
|
||||||
options={[false, true]}
|
on:click={() => (localShare = false)}
|
||||||
bind:selected={localShare}
|
title={$t('filter.location.global')}
|
||||||
class="ml-auto"
|
>
|
||||||
buttonClass="!py-1"
|
<Icon src={GlobeAmericas} size="16" micro />
|
||||||
/>
|
</Button>
|
||||||
|
<Button
|
||||||
|
color={localShare ? 'primary' : 'secondary'}
|
||||||
|
size="square-md"
|
||||||
|
roundingSide="right"
|
||||||
|
on:click={() => (localShare = true)}
|
||||||
|
title={$t('filter.location.local')}
|
||||||
|
>
|
||||||
|
<Icon src={MapPin} size="16" micro />
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
{#if post.post.body && $userSettings.translator}
|
{#if post.post.body && $userSettings.translator}
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
title={$t('post.actions.more.share')}
|
title={$t('post.actions.more.share')}
|
||||||
loading={sharing}
|
loading={sharing}
|
||||||
>
|
>
|
||||||
<Icon src={Share} size="20" micro />
|
<Icon src={Share} size="20" micro slot="prefix" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
|||||||
Reference in new issue
Block a user