@axium/client 0.24.0 → 0.24.1

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.
Files changed (2) hide show
  1. package/lib/Audio.svelte +20 -8
  2. package/package.json +1 -1
package/lib/Audio.svelte CHANGED
@@ -28,7 +28,7 @@
28
28
  const media = new MediaState();
29
29
  </script>
30
30
 
31
- <div onkeydown={media.keydown}>
31
+ <div class="Audio" onkeydown={media.keydown}>
32
32
  {#if showCover}
33
33
  <div class="audio-cover" onclick={media.click}>
34
34
  {#if picture}
@@ -73,9 +73,22 @@
73
73
  </dialog>
74
74
 
75
75
  <style>
76
+ .Audio {
77
+ display: flex;
78
+ flex-direction: column;
79
+ align-items: center;
80
+ width: 100%;
81
+ max-width: 512px;
82
+
83
+ :global(.MediaControls) {
84
+ width: 100%;
85
+ margin-top: 1em;
86
+ }
87
+ }
88
+
76
89
  .audio-cover {
77
- width: 512px;
78
- height: 512px;
90
+ width: 100%;
91
+ aspect-ratio: 1/1;
79
92
  background-color: var(--bg-alt);
80
93
  border-radius: 1em;
81
94
  display: flex;
@@ -83,13 +96,12 @@
83
96
  gap: 1em;
84
97
  align-items: center;
85
98
  justify-content: center;
99
+ overflow: hidden;
86
100
 
87
101
  img {
88
- border-radius: 1em;
89
- }
90
-
91
- :global(.MediaControls) {
92
- width: 512px;
102
+ width: 100%;
103
+ height: 100%;
104
+ object-fit: scale-down;
93
105
  }
94
106
  }
95
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/client",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "author": "James Prevett <jp@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",