Skapade stöd för att kunna stil upp pluginet med en egen stilmalla

This commit is contained in:
crille committed 2026-04-03 09:18:02 +02:00
1 parent 523c743de9
commit cdef12ef18
4 files changed
+93 -15

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
{
"apiVersion": 2,
"name": "spotify-recent-oauth/recent-track",
"title": "Spotify Recent Track",
"category": "widgets",
"icon": "format-audio",
"description": "Visar din senast spelade låt från Spotify.",
"supports": {
"html": false
},
"editorScript": "sro-block-js",
"style": "sro-style",
"editorStyle": "sro-editor-style",
"render": "sro_render_recent_track"
}
+4
View File
@@ -0,0 +1,4 @@
.sro-container {
border: 1px dashed #888;
padding: 10px;
}
+23
View File
@@ -0,0 +1,23 @@
.sro-container {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
background: #111;
color: #fff;
border-radius: 8px;
}
.sro-album img {
width: 300px;
height: 300px;
border-radius: 4px;
}
.sro-info {
line-height: 1.2;
}
.sro-track {
font-weight: bold;
}