Skip to content

Commit

Permalink
style(content_scroll): only the page content will scroll, the rest of…
Browse files Browse the repository at this point in the history
… the page is fixed (#1128)
  • Loading branch information
LaurentMag authored Nov 27, 2023
1 parent d2d20c2 commit 9421cf7
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 32 deletions.
2 changes: 1 addition & 1 deletion yaki_admin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion yaki_admin/src/components/ButtonTextIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const props = defineProps({
const classList = [
"button--general",
"button--color-delete",
"button--color-primary",
"button--sized-content",
"button--height-secondary",
"button--icon-text-style",
Expand Down
13 changes: 10 additions & 3 deletions yaki_admin/src/components/SideBarMenuDropDown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ const props = defineProps({
}
.drop-down__create-team {
margin-block: 10px;
padding-block: 16px;
margin-block: 4px;
padding-inline-start: 16px;
height: 56px;
display: flex;
align-items: center;
Expand All @@ -139,7 +139,14 @@ const props = defineProps({
}
&:hover {
background-color: #fab9a1;
background-color: #ff9169;
cursor: pointer;
color: rgb(238, 237, 237);
figure {
img {
filter: invert(0.9);
}
}
}
&:active {
Expand Down
43 changes: 30 additions & 13 deletions yaki_admin/src/features/captain/layouts/CaptainPageContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ onBeforeMount(async () => {
</template>
<template #content>
<section class="user-list__container">
<p>Team description : Coming soon.</p>
<p v-if="teammateStore.getTeammateList.length > 0">Teammates :</p>
<user-info-card
v-for="teammate in teammateStore.getTeammateList"
:user="teammate"
:key="teammate.id" />
<section class="user-list__in-team-container">
<user-info-card
v-for="teammate in teammateStore.getTeammateList"
:user="teammate"
:key="teammate.id" />
</section>
</section>
</template>
</page-content-layout>
Expand All @@ -35,9 +38,20 @@ onBeforeMount(async () => {
<style scoped lang="scss">
$border-radius: 24px;
.user-list__container {
border-radius: $border-radius;
padding-block-end: 10rem;
> p {
> p:nth-of-type(1) {
color: #7d818c;
font-family: Rubik;
font-size: 15px;
font-style: normal;
font-weight: 400;
line-height: 150%;
padding-block-end: 32px;
}
> p:nth-of-type(2) {
color: #7d818c;
font-size: 16px;
font-style: normal;
Expand All @@ -47,14 +61,17 @@ $border-radius: 24px;
padding-block-end: 16px;
}
article:nth-of-type(1) {
border-top-left-radius: $border-radius;
border-top-right-radius: $border-radius;
}
.user-list__in-team-container {
border-radius: $border-radius;
article:nth-of-type(1) {
border-top-left-radius: $border-radius;
border-top-right-radius: $border-radius;
}
article:last-of-type {
border-bottom-left-radius: $border-radius;
border-bottom-right-radius: $border-radius;
article:last-of-type {
border-bottom-left-radius: $border-radius;
border-bottom-right-radius: $border-radius;
}
}
}
</style>
13 changes: 1 addition & 12 deletions yaki_admin/src/features/captain/layouts/PageContentHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ const onClickDeleteTeam = () => {
@click.prevent="onClickDeleteTeam" />
</div>
</div>

<p>team description : coming soon</p>
</section>
</template>

Expand All @@ -50,8 +48,8 @@ const onClickDeleteTeam = () => {
flex-direction: column;
gap: 16px;
padding-block-end: 24px;
padding-inline: 40px;
padding-block: 24px 16px;
figure {
background-color: black;
Expand Down Expand Up @@ -88,14 +86,5 @@ const onClickDeleteTeam = () => {
line-height: 100%; /* 40px */
letter-spacing: -2px;
}
p {
color: #7d818c;
font-family: Rubik;
font-size: 15px;
font-style: normal;
font-weight: 400;
line-height: 150%;
}
}
</style>
6 changes: 5 additions & 1 deletion yaki_admin/src/global-layouts/PageContentLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

<style scoped lang="scss">
.content-wrapper {
margin-top: 48px;
padding-inline: 40px;
overflow: auto;
scrollbar-width: thin;
scrollbar-gutter: stable both-edges;
scrollbar-color: rgba(3, 3, 3, 0.446) transparent;
}
</style>
6 changes: 5 additions & 1 deletion yaki_admin/src/global-layouts/PageLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ import modalState from "@/features/shared/modal/services/modalState";
height: 100%;
}
.page-content {
padding: 30px;
display: flex;
flex-direction: column;
padding-block-start: 44px;
background-color: $background-color-theme-primary;
overflow: hidden;
}
</style>

0 comments on commit 9421cf7

Please sign in to comment.