Skip to content

Commit 085d8f9

Browse files
committed
chore: responsive improvements
1 parent 6d225bb commit 085d8f9

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

src/components/Body.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ pluginService.findAll().then((plugins) => {
7070
</script>
7171

7272
<template>
73-
<Loading message="Generating project" :show="loading"></Loading>
73+
<Loading
74+
:full="true"
75+
message="Generating project"
76+
:show="loading"
77+
position="fixed"
78+
></Loading>
7479
<div class="px-3 my-8 mb-16">
7580
<a ref="refDownload"></a>
7681
<div class="width-content grid lg:grid-cols-2 grid-cols-1">

src/components/ItemPlugin.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ const formatDate = (date: string) => {
3434
<span class="text-lg font-bold">
3535
{{ plugin.name }}
3636
</span>
37-
<span class="text-base"> Updated: {{ formatDate(plugin.date) }} </span>
37+
<span class="text-base text-right">
38+
<span class="hidden md:inline-block">Updated:</span>
39+
{{ formatDate(plugin.date) }}
40+
</span>
3841
</div>
39-
<span class="text-base mt-1">
42+
<div class="text-base mt-2">
4043
{{ plugin.description }}
41-
</span>
44+
</div>
4245
</div>
4346
<div class="flex justify-between items-center mt-3">
4447
<span>Last month download {{ plugin.downloadStats.lastMonth }}</span>
@@ -53,7 +56,7 @@ const formatDate = (date: string) => {
5356
<span class="mdi mdi-github"></span>
5457
</a>
5558
<a
56-
class="px-3 rounded-full"
59+
class="px-3 rounded-full truncate overflow-hidden"
5760
style="background: #d55553"
5861
:href="plugin.links.npm"
5962
target="_blank"

src/components/Loading.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ const state = reactive({ count: 0 });
5555

5656
<style scoped>
5757
.content-loading {
58-
position: absolute;
58+
position: fixed;
5959
left: 0;
6060
top: 0;
61-
width: 100%;
62-
height: 100%;
61+
width: 100vw;
62+
height: 100vh;
6363
display: flex;
6464
justify-content: center;
6565
align-items: center;

src/components/Modal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<div class="modal-overlay" id="modal-overlay"></div>
66
<div
77
ref="refModal"
8-
class="modal rounded-2xl bg-light"
9-
:class="{ 'full-screen': fullScreen }"
8+
class="modal bg-light"
9+
:class="[fullScreen ? 'full-screen' : 'rounded-2xl']"
1010
id="modal"
1111
:style="{ height: fullScreen ? '100%' : maxHeight }"
1212
>

0 commit comments

Comments
 (0)