Skip to content

Commit

Permalink
Clean up using flex
Browse files Browse the repository at this point in the history
  • Loading branch information
vallode committed Jun 3, 2022
1 parent e125166 commit a3c65ed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/renderer/views/Playlist/Playlist.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
.routerView {
display: flex;
}

.playlistInfo {
background-color: var(--card-bg-color);
float: left;
height: calc(100vh - 80px);
box-sizing: border-box;
height: calc(100vh - 96px);
margin-right: 1em;
overflow-y: auto;
padding: 10px;
position: sticky;
top: 80px;
top: 78px;
width: 30%;
}

Expand All @@ -19,6 +23,10 @@
}

@media only screen and (max-width: 800px) {
.routerView {
flex-direction: column;
}

.playlistInfo {
box-sizing: border-box;
position: relative;
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/views/Playlist/Playlist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
v-if="isLoading"
:fullscreen="true"
/>

<playlist-info
v-if="!isLoading"
:data="infoData"
class="playlistInfo"
/>

<ft-card
v-if="!isLoading"
class="playlistItems"
Expand Down

0 comments on commit a3c65ed

Please sign in to comment.