-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert ProfileLink Options component removal, update styles, reflect …
…current icon style
- Loading branch information
Showing
2 changed files
with
38 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/js/Options/Modules/Options/Components/ProfileLink.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script lang="ts"> | ||
import ProfileLinkIcon from "@Icons/ProfileLinkIcon.svelte"; | ||
import type {SettingsSchema} from "@Options/Data/_types"; | ||
export let id: string; | ||
export let type: SettingsSchema['show_profile_link_images']; | ||
</script> | ||
|
||
|
||
<span> | ||
{#if type !== "none"} | ||
<ProfileLinkIcon {id} gray={type === "gray"} /> | ||
{/if} | ||
<slot></slot> | ||
</span> | ||
|
||
|
||
<style> | ||
span { | ||
display: inline-flex; | ||
align-items: center; | ||
position: relative; | ||
} | ||
span:has(i) { | ||
top: 2px; | ||
} | ||
</style> |