+
{isOpen ? (
) : (
diff --git a/hooks/agenda/usePageNation.ts b/hooks/agenda/usePageNation.ts
index 4dafa0983..ddbaa37f5 100644
--- a/hooks/agenda/usePageNation.ts
+++ b/hooks/agenda/usePageNation.ts
@@ -33,6 +33,7 @@ const usePageNation = ({
res.data.content = res.data.content.map((c: T, idx: number) => {
const temp = c as T & { idx: number };
temp.idx = idx + 1 + size * (page - 1);
+ console.log(temp.idx, idx, page, size);
return temp;
});
}
diff --git a/styles/agenda/agendaDetail/tabs/AgendaAnnouncements.module.scss b/styles/agenda/agendaDetail/tabs/AgendaAnnouncements.module.scss
index 702ce8516..1b025ce0b 100644
--- a/styles/agenda/agendaDetail/tabs/AgendaAnnouncements.module.scss
+++ b/styles/agenda/agendaDetail/tabs/AgendaAnnouncements.module.scss
@@ -5,6 +5,9 @@
width: 100%;
flex-direction: column;
gap: 1rem;
+ @media screen and (min-width: 961px) {
+ width: 40%;
+ }
}
.buttonWarp {
@@ -22,4 +25,7 @@
margin: 0;
gap: 1rem;
align-items: flex-start;
+ @media screen and (min-width: 961px) {
+ padding: 0.5rem;
+ }
}
diff --git a/styles/agenda/agendaDetail/tabs/AnnouncementItem.module.scss b/styles/agenda/agendaDetail/tabs/AnnouncementItem.module.scss
index 80d56bd87..fb4c3c91d 100644
--- a/styles/agenda/agendaDetail/tabs/AnnouncementItem.module.scss
+++ b/styles/agenda/agendaDetail/tabs/AnnouncementItem.module.scss
@@ -8,6 +8,10 @@
flex-direction: column;
padding: 1.5rem;
+ @media screen and (min-width: 961px) {
+ padding: 1rem;
+ margin: 0 1rem 0 0;
+ }
margin: 0;
gap: 1rem;
align-items: flex-start;
@@ -42,3 +46,13 @@
.announcementContent {
@include text('default');
}
+
+.mobile {
+ @include gridHidden(mobile);
+}
+
+.web {
+ @include gridHidden(web);
+ margin-left: 1rem;
+ justify-content: flex-start;
+}
diff --git a/types/agenda/agendaDetail/announcementTypes.ts b/types/agenda/agendaDetail/announcementTypes.ts
index 87523fb16..e5fa57bcd 100644
--- a/types/agenda/agendaDetail/announcementTypes.ts
+++ b/types/agenda/agendaDetail/announcementTypes.ts
@@ -3,4 +3,6 @@ export interface AnnouncementProps {
title: string;
content: string;
createdAt: Date;
+ isSelected?: boolean;
+ setSelected?: () => void;
}
From 5061a1dd41f034b5c836cbda4e63815bd81363dd Mon Sep 17 00:00:00 2001
From: siwolee
Date: Wed, 4 Sep 2024 11:13:31 +0900
Subject: [PATCH 24/48] =?UTF-8?q?style:=20=EB=AF=B8=EC=84=B8=20=EA=B0=84?=
=?UTF-8?q?=EA=B2=A9=20=EC=A1=B0=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
styles/agenda/Form/Form.module.scss | 2 +-
styles/agenda/Home/MyTeamInfo.module.scss | 1 +
styles/agenda/agendaDetail/AgendaTab.module.scss | 3 +--
styles/agenda/utils/StartDate.module.scss | 5 +++--
4 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/styles/agenda/Form/Form.module.scss b/styles/agenda/Form/Form.module.scss
index b14f12ffa..6b35eccee 100644
--- a/styles/agenda/Form/Form.module.scss
+++ b/styles/agenda/Form/Form.module.scss
@@ -67,7 +67,7 @@
display: flex;
width: 100%;
gap: 2rem;
- @media (max-width: 500px) {
+ @media (max-width: 600px) {
flex-direction: column;
gap: 1rem;
}
diff --git a/styles/agenda/Home/MyTeamInfo.module.scss b/styles/agenda/Home/MyTeamInfo.module.scss
index 04d02a04d..bd13c3eea 100644
--- a/styles/agenda/Home/MyTeamInfo.module.scss
+++ b/styles/agenda/Home/MyTeamInfo.module.scss
@@ -9,6 +9,7 @@
border-radius: $radius-medium;
box-shadow: var(--default-box-shadow);
gap: 1rem;
+ align-items: center;
}
.infoContainer {
diff --git a/styles/agenda/agendaDetail/AgendaTab.module.scss b/styles/agenda/agendaDetail/AgendaTab.module.scss
index 5083fe993..38c2823d3 100644
--- a/styles/agenda/agendaDetail/AgendaTab.module.scss
+++ b/styles/agenda/agendaDetail/AgendaTab.module.scss
@@ -31,8 +31,7 @@
}
.tabWarp {
- width: 100vw;
- max-width: 100%;
+ width: 100%;
@media screen and (min-width: 481px) and (max-width: 960px) {
width: 100%;
}
diff --git a/styles/agenda/utils/StartDate.module.scss b/styles/agenda/utils/StartDate.module.scss
index 58acd9bd4..efa1faacb 100644
--- a/styles/agenda/utils/StartDate.module.scss
+++ b/styles/agenda/utils/StartDate.module.scss
@@ -3,10 +3,11 @@
.agendaDateBox {
display: flex;
width: fit-content;
- height: 100%;
+ height: max-content;
flex-direction: column;
+ margin: 0.2rem 0;
text-align: justify;
- letter-spacing: 0.2rem;
+ letter-spacing: 0.3rem;
justify-content: flex-start;
align-items: center;
gap: 0rem;
From f4cd6df8ffbd59cf89f3ab21285a673540136b6a Mon Sep 17 00:00:00 2001
From: siwolee
Date: Wed, 4 Sep 2024 11:14:08 +0900
Subject: [PATCH 25/48] =?UTF-8?q?fix:=20=EC=9C=84=EC=B9=98=20MIX=20?=
=?UTF-8?q?=ED=91=9C=EA=B8=B0=20=ED=98=BC=ED=95=A9->=20=EC=A0=84=EA=B5=AD?=
=?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/agenda/utils/AgendaTags.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/agenda/utils/AgendaTags.tsx b/components/agenda/utils/AgendaTags.tsx
index 5df1d4dbb..582bfc1e7 100644
--- a/components/agenda/utils/AgendaTags.tsx
+++ b/components/agenda/utils/AgendaTags.tsx
@@ -13,7 +13,7 @@ const AgendaTags = (data: AgendaDataProps) => {
const LocationToTagName: Record = {
[AgendaLocation.SEOUL]: '서울',
[AgendaLocation.GYEONGSAN]: '경산',
- [AgendaLocation.MIX]: '혼합',
+ [AgendaLocation.MIX]: '전국',
};
const status = statusToTagName[data.agendaStatus];
From a93a5ac9089833283b8e55cdbe23f4789c59dfbd Mon Sep 17 00:00:00 2001
From: siwolee
Date: Wed, 4 Sep 2024 11:22:02 +0900
Subject: [PATCH 26/48] =?UTF-8?q?fix:=20=EA=B3=B5=EC=A7=80=20=EC=97=86?=
=?UTF-8?q?=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20=EC=B2=98=EB=A6=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../agendaDetail/tabs/AgendaAnnouncements.tsx | 22 +++++++++++--------
.../tabs/AgendaAnnouncements.module.scss | 14 ++++++++++++
2 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/components/agenda/agendaDetail/tabs/AgendaAnnouncements.tsx b/components/agenda/agendaDetail/tabs/AgendaAnnouncements.tsx
index c13e92854..e0bc9f535 100644
--- a/components/agenda/agendaDetail/tabs/AgendaAnnouncements.tsx
+++ b/components/agenda/agendaDetail/tabs/AgendaAnnouncements.tsx
@@ -45,17 +45,21 @@ export default function AgendaAnnouncements({ isHost }: { isHost: boolean }) {
) : null}
+ {content.length > 0 && selected >= 0 && selected < content.length ? (
+
+ ) : (
+ ''
+ )}
>
) : (
-
공지사항이 없습니다.
공지사항이 없습니다.