mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
refactor app grid
- make content container scrollable, more flexible
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<NavBar />
|
<NavBar />
|
||||||
<div class="content">
|
<div id="acontent">
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
<SearchInput />
|
<SearchInput />
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ a {
|
|||||||
.l-container {
|
.l-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: min-content 1fr min-content;
|
grid-template-columns: min-content 1fr min-content;
|
||||||
grid-template-rows: 3rem 1fr 1fr;
|
grid-template-rows: 3.5rem 1fr 1fr;
|
||||||
grid-auto-flow: row;
|
grid-auto-flow: row;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"l-sidebar nav search-input"
|
"l-sidebar nav search-input"
|
||||||
@@ -129,10 +129,11 @@ a {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
#acontent {
|
||||||
grid-area: content;
|
grid-area: content;
|
||||||
padding: 0;
|
|
||||||
max-width: 1504px;
|
max-width: 1504px;
|
||||||
|
padding: $small;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
margin: $small;
|
margin: $small;
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ onMounted(() => {
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr min-content max-content;
|
grid-template-columns: 1fr min-content max-content;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
margin: $small $small 0 $small;
|
margin: $small $small 0 0;
|
||||||
border-bottom: 1px solid $gray3;
|
border-bottom: 1px solid $gray3;
|
||||||
height: 3rem;
|
height: 3rem;
|
||||||
|
|
||||||
|
|||||||
@@ -39,10 +39,6 @@ onBeforeRouteUpdate(async (to) => {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.al-view {
|
.al-view {
|
||||||
height: calc(100% - 1rem);
|
|
||||||
overflow: auto;
|
|
||||||
margin: $small;
|
|
||||||
margin-right: 0;
|
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
|
|
||||||
.songs {
|
.songs {
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ onBeforeRouteUpdate((to) => {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#f-view-parent {
|
#f-view-parent {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0 0 0 $small;
|
|
||||||
margin-top: $small;
|
|
||||||
|
|
||||||
.h {
|
.h {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
|
|||||||
@@ -38,11 +38,6 @@ const playlist = usePTrackStore();
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.playlist-view {
|
.playlist-view {
|
||||||
height: calc(100% - 0.5rem);
|
|
||||||
margin-top: $small;
|
|
||||||
margin-left: $small;
|
|
||||||
// border: solid 1px;
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user