fix native open button, button align
parent
5ff91af98e
commit
4d413dde80
|
@ -7,7 +7,7 @@
|
|||
import { useEntity } from "../../lib/entity";
|
||||
import { readable } from "svelte/store";
|
||||
import { notify, UpNotification } from "../../notifications";
|
||||
import IconButton from "../utils/IconButton.svelte";
|
||||
import IconButton from "../utils/IconButton.svelte";
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
export let address: string;
|
||||
|
@ -88,11 +88,13 @@ import IconButton from "../utils/IconButton.svelte";
|
|||
{/if}
|
||||
</div>
|
||||
{#if banner && isFile}
|
||||
<IconButton
|
||||
name="arrow-up-right-circle"
|
||||
on:click={nativeOpen}
|
||||
title="Open in default application..."
|
||||
/>
|
||||
<div class="icon">
|
||||
<IconButton
|
||||
name="window-open"
|
||||
on:click={nativeOpen}
|
||||
title="Open in default application..."
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
@ -131,6 +133,10 @@ import IconButton from "../utils/IconButton.svelte";
|
|||
width: 0.5em;
|
||||
}
|
||||
|
||||
.icon {
|
||||
margin: 0 .25em;
|
||||
}
|
||||
|
||||
.resolving {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
color: inherit;
|
||||
opacity: 0.66;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
transition: opacity 0.2s, color 0.2s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue