fix: play button icon, playlist modal styling, and JSON parsing
- Fix play button by removing fill props and using CSS to style svg - Add custom dropdown arrow and dark theme styling for select element - Add #[serde(default)] to many model fields to handle missing data - Add Default implementations for Artist, PlaylistOwner, ImageSet
This commit is contained in:
1 parent
fa1ce98fc0
commit
905825177c
3 files changed
+45
-7
No files matched your search
@@ -181,9 +181,9 @@
|
||||
</button>
|
||||
<button class="play-btn" onclick={onTogglePlay}>
|
||||
{#if isPlaying}
|
||||
<Pause size={24} fill="white" color="white" />
|
||||
<Pause size={24} />
|
||||
{:else}
|
||||
<Play size={24} fill="white" color="white" class="play-icon" />
|
||||
<Play size={24} />
|
||||
{/if}
|
||||
</button>
|
||||
<button class="control-btn primary" onclick={onSkipForward}>
|
||||
@@ -438,14 +438,16 @@
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: background-color 150ms ease;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.play-btn:hover {
|
||||
background-color: var(--accent-hover);
|
||||
}
|
||||
|
||||
.play-btn :global(.play-icon) {
|
||||
margin-left: 2px;
|
||||
.play-btn :global(svg) {
|
||||
fill: white;
|
||||
stroke: white;
|
||||
}
|
||||
|
||||
/* Progress Bar */
|
||||
|
||||
@@ -409,6 +409,21 @@
|
||||
transition: border-color 150ms ease;
|
||||
}
|
||||
|
||||
.form-group select {
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 12px center;
|
||||
padding-right: 36px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.form-group select option {
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.form-group input[type="text"]:focus,
|
||||
.form-group textarea:focus,
|
||||
.form-group select:focus {
|
||||
|
||||
Reference in new issue
Block a user