mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
Improve icon display
This commit is contained in:
+1
-1
@@ -239,7 +239,7 @@ a.address {
|
||||
}
|
||||
|
||||
input[type="text"], button {
|
||||
line-height: 1.5em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
input[type="text"] {
|
||||
outline: none;
|
||||
|
||||
+5
-1
@@ -2,6 +2,7 @@
|
||||
export let name: string;
|
||||
export let width: number | null = null;
|
||||
export let height: number | null = null;
|
||||
export let inline: boolean = false;
|
||||
|
||||
const icons = [
|
||||
{
|
||||
@@ -22,10 +23,13 @@
|
||||
svg {
|
||||
fill: currentColor;
|
||||
}
|
||||
svg.inline {
|
||||
height: 1.6rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
{#if svg}
|
||||
<svg role="img" class={$$props.class}
|
||||
<svg role="img" class={$$props.class} class:inline
|
||||
width={width || "1rem"}
|
||||
height={height || "1rem"}
|
||||
viewBox="0 0 {svg.size} {svg.size}">
|
||||
|
||||
@@ -86,7 +86,6 @@
|
||||
height: 64px;
|
||||
}
|
||||
.links {
|
||||
height: 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: left;
|
||||
@@ -149,12 +148,12 @@
|
||||
{/if}
|
||||
{#if profile.twitter}
|
||||
<a class="url" href="https://twitter.com/{profile.twitter}">
|
||||
<Icon name="twitter" />
|
||||
<Icon name="twitter" inline />
|
||||
</a>
|
||||
{/if}
|
||||
{#if profile.github}
|
||||
<a class="url" href="https://github.com/{profile.github}">
|
||||
<Icon name="github" />
|
||||
<Icon name="github" inline />
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -74,12 +74,12 @@
|
||||
{/if}
|
||||
{#if profile.twitter}
|
||||
<a class="url" href="https://twitter.com/{profile.twitter}">
|
||||
<Icon name="twitter" />
|
||||
<Icon name="twitter" inline />
|
||||
</a>
|
||||
{/if}
|
||||
{#if profile.github}
|
||||
<a class="url" href="https://github.com/{profile.github}">
|
||||
<Icon name="github" />
|
||||
<Icon name="github" inline />
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user