Skip to content

Commit

Permalink
cleanup unuse popover
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmh0901 committed Mar 10, 2024
1 parent 02bf651 commit 236e6f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/theme/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
@tailwind components;
@tailwind utilities;

ion-popover {
--width: 350px;
--height: auto;
--max-width: 80vh;
}

.alert .alert-title {
@apply text-lg;
}
Expand Down
4 changes: 2 additions & 2 deletions src/views/board/components/message-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@ionic/vue';
import { MessageType } from '@/views/board/components/type';
import { useModal } from '@/composables/use-modal';
import CardDetailPopover from '@/views/board/components/card-detail-modal.vue';
import CardDetailModal from '@/views/board/components/card-detail-modal.vue';
interface IProps {
msg: MessageType;
Expand All @@ -19,7 +19,7 @@ const props = defineProps<IProps>();
const { open } = useModal();
const onClick = async () => {
await open({
component: CardDetailPopover,
component: CardDetailModal,
property: {
msg: props.msg,
name: props.nameDict[props.msg.userId]
Expand Down
4 changes: 2 additions & 2 deletions src/views/profile/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ const openSelfForm = async () => {
};
// open admin-resume
const openPopover = useModal();
const openModal = useModal();
const openAdminResume = async () => {
await openPopover.open({
await openModal.open({
component: AdminMsg,
property: { user: user.value },
cssClass: 'dialog-modal'
Expand Down

0 comments on commit 236e6f1

Please sign in to comment.