Skip to content

Commit

Permalink
[#12] Fix skeleton loader style
Browse files Browse the repository at this point in the history
  • Loading branch information
suphanatjarukulgowit committed Feb 10, 2023
1 parent e3a1179 commit 5d9e578
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
27 changes: 17 additions & 10 deletions src/assets/stylesheets/components/_skeleton-loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,36 @@
top: 18.5%;
}

.survey-list-loader {
.survey-list-loader-container {
position: absolute;
left: 25.56%;
right: 25.56%;
top: 25.38%;
bottom: 36.88%;
height: 70%;

.survey-list-loader {
position: absolute;
width: 100% !important;
}
.survey-link-loader {
position: absolute;
top: 49.5%;
right: 0px;
border-radius: 50%;
}
}

.survey-title-loader {
position: absolute;
left: 25.56%;
top: 67.38%;
top: 60%;
}

.survey-description-loader {
position: absolute;
left: 25.56%;
top: 72.5%;
}

.survey-link-loader {
position: absolute;
right: 27.5%;
top: 67.38%;
border-radius: 50%;
top: 65.12%;
}

.user-avatar-loader {
Expand Down
1 change: 0 additions & 1 deletion src/assets/stylesheets/components/_survey_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
top: 25.38%;
bottom: 36.88%;
height: 70%;
width: 44rem;
.swiper {
width: 100%;
cursor: pointer;
Expand Down
6 changes: 4 additions & 2 deletions src/components/SurveyLoding/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const SurveyLoading = () => {
<SkeletonLoader width={36} height={36} className="user-avatar-loader" />
<SkeletonLoader width={150} height={25} className="date-loader" />
<SkeletonLoader width={100} height={25} className="date-today-loader" />
<SkeletonLoader width={704} height={302} className="survey-list-loader" />
<div className="survey-list-loader-container">
<SkeletonLoader width={704} height={302} className="survey-list-loader" />
<SkeletonLoader width={56} height={56} className="survey-link-loader" />
</div>
<SkeletonLoader width={318} height={25} className="survey-title-loader" />
<SkeletonLoader width={240} height={25} className="survey-description-loader" />
<SkeletonLoader width={56} height={56} className="survey-link-loader" />
</div>
);
};
Expand Down

0 comments on commit 5d9e578

Please sign in to comment.