Skip to content

Commit 76732b1

Browse files
committed
Layout tweaks
1 parent 2d9f873 commit 76732b1

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stronk-tech/react-librespot-controller",
33
"description": "`go-librespot` squeezebox-alike web frontend for small touchscreens",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",
77
"files": [

src/components/Info/Playlists.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,21 @@
3737
transform: translateY(-50%);
3838
font-size: 2rem;
3939
color: var(--subtext-color);
40+
padding: 0.2em;
41+
background-color: var(--darker);
42+
border-radius: 0.4em;
4043
pointer-events: none;
4144
opacity: 0.7;
4245
transition: opacity 0.2s ease-in-out, transform 0.0s ease;
46+
z-index: 99;
4347
}
4448

4549
.spotify-player-arrow.arrow-visible {
46-
opacity: 0.7;
50+
opacity: 0.4;
4751
}
4852

49-
.spotify-player-arrow:hover {
50-
opacity: 1;
53+
.spotify-player-playlists-wrapper:hover .spotify-player-arrow.arrow-visible {
54+
opacity: 0.6;
5155
}
5256

5357
.spotify-player-arrow.arrow-hidden {

src/components/MediaPlayer.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@
9898
order: 1;
9999
}
100100

101+
.spotify-player-portrait-layout .spotify-player-playlists-wrapper,
102+
.spotify-player-portrait-layout .spotify-player-track-details {
103+
height: 200px;
104+
margin: 0;
105+
flex: unset;
106+
}
107+
101108
.spotify-player-portrait-layout .spotify-player-playlist-container {
102109
grid-template-rows: repeat(2, minmax(50px, auto));
103110
grid-auto-flow: column;
@@ -119,6 +126,7 @@
119126
.spotify-player-widescreen-layout .spotify-player-right {
120127
gap: 0;
121128
height: 100%;
129+
align-self: flex-start;
122130
}
123131

124132
.spotify-player-widescreen-layout .spotify-player-middle {
@@ -129,6 +137,7 @@
129137
height: 100%;
130138
overflow-x: auto;
131139
box-sizing: border-box;
140+
align-self: flex-start;
132141
}
133142

134143
.spotify-player-widescreen-layout .spotify-player-playlists-wrapper {

0 commit comments

Comments
 (0)