From 3f3a52c19754c7a0c6de43f26cbd17f69a3978fe Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Wed, 25 Oct 2023 21:45:56 +0800 Subject: [PATCH] pref: adjust info component mobile --- README.md | 2 +- src/components/alert/Info.vue | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e3bc820..94782ac5 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ We believe that "what truly makes a good game is something that makes you feel h - Compatible with all modern browsers on both mobile and desktop. - Responsive design for screens of any size. -- Developed entirely using `Vue3` Composition API and fully supports `Typescript`. The coding style follows the best practices recommended on the [Vue official website](https://chat.openai.com/c/vuejs.org). +- Developed entirely using `Vue3` Composition API and fully supports `Typescript`. The coding style follows the best practices recommended on the [Vue official website](https://vuejs.org/). ## Features diff --git a/src/components/alert/Info.vue b/src/components/alert/Info.vue index c0bc476e..dc0065d8 100644 --- a/src/components/alert/Info.vue +++ b/src/components/alert/Info.vue @@ -65,6 +65,7 @@ const handleClose = () => { right: 0; z-index: 9999; } + .lass { padding: 5px; font-size: 20px; @@ -74,6 +75,7 @@ const handleClose = () => { border-bottom: none; /* This shadow can only be drawn like this */ filter: drop-shadow(2px 4px 3px var(--kungalgame-trans-blue-4)); + span { padding: 0 50px; text-align: center; @@ -83,14 +85,18 @@ const handleClose = () => { clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0 50%); } } + .avatar { position: absolute; margin-top: 10px; margin-left: 20px; + img { height: 100px; + width: 100%; } } + .info { margin-top: 20px; margin-left: 150px; @@ -112,4 +118,33 @@ const handleClose = () => { right: 0; color: var(--kungalgame-font-color-1); } + +@media (max-width: 700px) { + .container { + min-height: 77px; + } + + .lass { + padding: 5px; + font-size: 15px; + padding-left: 20px; + top: -33px; + + span { + font-size: 17px; + } + } + .info { + margin-top: 10px; + margin-right: 30px; + margin-left: 77px; + } + + .avatar { + img { + height: 50px; + width: 100%; + } + } +}