Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: layout issues on low-resolution screens #112

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")],
};