@axium/server 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -1,9 +1,10 @@
1
1
  <script lang="ts">
2
2
  import { onMount } from 'svelte';
3
3
 
4
- const { id, style = 'solid' } = $props();
4
+ const { id } = $props();
5
5
 
6
- const href = `https://site-assets.fontawesome.com/releases/v6.7.2/svgs/${style}/${id}.svg`;
6
+ const withStyle = id.includes('/') ? id : 'solid/' + id;
7
+ const href = `https://site-assets.fontawesome.com/releases/v6.7.2/svgs/${withStyle}.svg`;
7
8
 
8
9
  let content = $state('');
9
10
 
@@ -38,5 +39,6 @@
38
39
  height: 1em;
39
40
  display: inline-block;
40
41
  fill: #bbb;
42
+ font-size: var(--size, auto);
41
43
  }
42
44
  </style>
@@ -27,7 +27,7 @@
27
27
  <a href="/edit/email"><Icon id="chevron-right" /></a>
28
28
  </div>
29
29
  <div>
30
- <p>User ID <dfn title="This is your UUID."><Icon id="circle-info" style="regular" /></dfn></p>
30
+ <p>User ID <dfn title="This is your UUID."><Icon id="regular/circle-info" /></dfn></p>
31
31
  <p>{user.id}</p>
32
32
  </div>
33
33
  <a id="signout" href="/auth/signout"><button>Sign out</button></a>