Skip to content

Commit

Permalink
fix: add loading placeholder for social-login to auth-panel
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrstrom committed Dec 14, 2022
1 parent 7166a89 commit a0131f2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/api_extra/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class Meta:
abstract = True


@extend_schema_field(OpenApiTypes.NUMBER,)
@extend_schema_field(
OpenApiTypes.NUMBER,
)
class DurationInSecondsSerializer(
serializers.Serializer,
):
Expand Down
2 changes: 1 addition & 1 deletion core/electronic_mail/templates/electronic_mail/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</style>
</head>
<body
style="font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica Neue, Oxygen, Cantarell, sans-serif; background: #f5f5f5;"
style="font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Helvetica Neue, Oxygen, Cantarell, sans-serif;"
>
<table
cellspacing="0"
Expand Down
6 changes: 5 additions & 1 deletion src/components/account/AuthSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ export default defineComponent({
}
.auth-panel {
min-height: 100%;
overflow-y: auto;
@include responsive.bp-medium {
min-height: 100%;
margin-bottom: 4rem;
}
}
.section.availability {
Expand Down
15 changes: 15 additions & 0 deletions src/components/account/SocialLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import imgApple from "@/assets/brand-icons/apple.svg";
import imgDeezer from "@/assets/brand-icons/deezer.svg";
import imgGoogle from "@/assets/brand-icons/google.svg";
import imgSpotify from "@/assets/brand-icons/spotify.svg";
import IconLoading from "@/components/ui/icon/IconBuffering.vue";
import { useDevice } from "@/composables/device";
const ICONS = {
Expand All @@ -24,6 +25,9 @@ interface Backend {
}
export default defineComponent({
components: {
IconLoading,
},
props: {
next: {
type: String,
Expand Down Expand Up @@ -100,6 +104,9 @@ export default defineComponent({
</i18n-t>
</div>
</section>
<section v-else class="backends backends--loading">
<IconLoading />
</section>
</div>
</template>

Expand All @@ -108,12 +115,20 @@ export default defineComponent({
.social-login {
.backends {
min-height: 48px;
display: grid;
grid-gap: 1rem;
grid-template-columns: repeat(2, 1fr);
margin-bottom: 2rem;
@include responsive.bp-medium {
grid-template-columns: repeat(1, 1fr);
min-height: 108px;
}
&--loading {
display: flex;
align-items: center;
justify-content: center;
}
}
Expand Down

0 comments on commit a0131f2

Please sign in to comment.