Skip to content

Commit

Permalink
fix: layout issues on low-resolution screens (#112)
Browse files Browse the repository at this point in the history
* fix: layout issues on low-resolution screens

Signed-off-by: Ryan Wang <[email protected]>

* Refine Layout

Signed-off-by: Ryan Wang <[email protected]>

---------

Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby authored Jun 14, 2024
1 parent 513a5ed commit 1eb0130
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
4 changes: 2 additions & 2 deletions console/src/uc/MomentsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { User } from "@halo-dev/api-client";
import type { ListedMoment } from "@/types";
import { useQuery } from "@tanstack/vue-query";
import apiClient from "@/utils/api-client";
import MomentItem from ".//MomentItem.vue";
import MomentItem from "./MomentItem.vue";
import DatePicker from "vue-datepicker-next";
import "vue-datepicker-next/index.css";
import "vue-datepicker-next/locale/zh-cn.es";
Expand Down Expand Up @@ -147,7 +147,7 @@ watch([tag, momentsRangeTime], () => {
</template>
</VPageHeader>
<VCard class="moments-m-0 md:moments-m-4 moments-flex-1">
<div class="moments-container moments-mx-auto">
<div class="moments-max-w-4xl moments-px-4 md:moments-px-8 moments-mx-auto">
<div
class="moments-content moments-my-2 md:moments-my-4 moments-flex moments-flex-col moments-space-y-2"
>
Expand Down
2 changes: 1 addition & 1 deletion console/src/views/MomentsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const handleJumpToFrontDesk = () => {
</template>
</VPageHeader>
<VCard class="moments-m-0 md:moments-m-4 moments-flex-1">
<div class="moments-container moments-mx-auto">
<div class="moments-max-w-4xl moments-px-4 md:moments-px-8 moments-mx-auto">
<div
class="moments-content moments-my-2 md:moments-my-4 moments-flex moments-flex-col moments-space-y-2"
>
Expand Down
11 changes: 0 additions & 11 deletions console/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,5 @@
module.exports = {
prefix: "moments-",
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
theme: {
container: {
padding: {
DEFAULT: "0.5rem",
sm: "1.5rem",
lg: "4rem",
xl: "14rem",
"2xl": "22rem",
},
},
},
plugins: [require("@tailwindcss/aspect-ratio")],
};

0 comments on commit 1eb0130

Please sign in to comment.