refactor app grid

- make content container scrollable, more flexible
This commit is contained in:
geoffrey45
2022-05-28 22:42:54 +03:00
parent 47eb5b49cd
commit 48bc4de569
6 changed files with 6 additions and 16 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
</div> </div>
</div> </div>
<NavBar /> <NavBar />
<div class="content"> <div id="acontent">
<router-view /> <router-view />
</div> </div>
<SearchInput /> <SearchInput />
+4 -3
View File
@@ -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;
+1 -1
View File
@@ -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;
-4
View File
@@ -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 {
-2
View File
@@ -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;
-5
View File
@@ -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;
} }