unfeature: nuke MBFC from Photon, close #436
This commit is contained in:
1 parent
3f93285392
commit
47cd2a0fea
5 files changed
+2
-224
No files matched your search
@@ -19,8 +19,6 @@
|
||||
export let embed_description: string | undefined = undefined
|
||||
export let view: View = 'cozy'
|
||||
|
||||
let openMediaBias = false
|
||||
|
||||
$: richURL = parseURL(url)
|
||||
</script>
|
||||
|
||||
@@ -106,7 +104,7 @@
|
||||
class="bg-white dark:bg-zinc-900 border border-slate-200 dark:border-zinc-800
|
||||
rounded-full flex p-1 relative -top-7 min-[384px]:mx-3 mt-8 min-[384px]:mt-0 mx-auto -mb-7 w-max max-w-full overflow-auto"
|
||||
>
|
||||
<PostLinkSources {url} view="cozy" bind:openMediaBias>
|
||||
<PostLinkSources {url}>
|
||||
<Button
|
||||
color="tertiary"
|
||||
slot="target"
|
||||
@@ -125,27 +123,10 @@
|
||||
{$t('post.actions.link.actions')}
|
||||
</Button>
|
||||
</PostLinkSources>
|
||||
<Button
|
||||
color="tertiary"
|
||||
size="sm"
|
||||
class="w-max text-slate-600 dark:text-zinc-400 block
|
||||
text-xs flex-shrink-0"
|
||||
on:click={() => (openMediaBias = !openMediaBias)}
|
||||
rounding="pill"
|
||||
>
|
||||
<Icon
|
||||
src={CheckBadge}
|
||||
size="16"
|
||||
micro
|
||||
slot="prefix"
|
||||
class="flex-shrink-0"
|
||||
/>
|
||||
{$t('post.actions.more.mediaBias')}
|
||||
</Button>
|
||||
</div>
|
||||
{:else}
|
||||
<div class="flex items-center gap-1">
|
||||
<PostLinkSources {url} view="compact">
|
||||
<PostLinkSources {url}>
|
||||
<Button
|
||||
color="ghost"
|
||||
slot="target"
|
||||
|
||||
@@ -41,12 +41,9 @@
|
||||
import { t } from '$lib/translations'
|
||||
import { Menu, MenuButton, MenuDivider } from 'mono-svelte'
|
||||
import type { MediaType } from '../helpers'
|
||||
import { CheckBadge, Icon } from 'svelte-hero-icons'
|
||||
import type { View } from '$lib/settings'
|
||||
|
||||
export let url: string
|
||||
export let type: MediaType = 'embed'
|
||||
export let view: View = 'cozy'
|
||||
|
||||
export let openMediaBias = false
|
||||
|
||||
@@ -71,11 +68,4 @@
|
||||
</MenuButton>
|
||||
{/if}
|
||||
{/each}
|
||||
{#if view == 'compact'}
|
||||
<MenuDivider>{$t('post.actions.link.actions')}</MenuDivider>
|
||||
<MenuButton on:click={() => (openMediaBias = !openMediaBias)}>
|
||||
<Icon src={CheckBadge} size="16" micro slot="prefix" />
|
||||
{$t('post.actions.more.mediaBias')}
|
||||
</MenuButton>
|
||||
{/if}
|
||||
</Menu>
|
||||
Reference in new issue
Block a user