diff --git a/src/views/board/BoardDetailView.vue b/src/views/board/BoardDetailView.vue
index add9e29..f895afb 100644
--- a/src/views/board/BoardDetailView.vue
+++ b/src/views/board/BoardDetailView.vue
@@ -141,9 +141,6 @@ const recommenders = computed(() => post.value?.recommenders || [])
const previewRecommenders = computed(() => recommenders.value.slice(0, 10))
const extraRecommenders = computed(() => Math.max(0, (post.value?.upCount || 0) - 10))
const showRecommenders = ref(false)
-function openRecommenders() {
- if (post.value?.upCount) showRecommenders.value = true
-}
onMounted(load)
@@ -161,11 +158,12 @@ onMounted(load)
:name="post.authorName"
:google-picture="post.authorGooglePicture"
:profile-image="post.authorProfileImage"
- :size="26"
+ :size="16"
/>
{{ post.authorName }}
· {{ formatRelative(post.createdAt) }}
· 조회 {{ post.viewCount }}
+ · 추천 {{ post.upCount || 0 }}
@@ -194,23 +192,37 @@ onMounted(load)
>👎 비추천 {{ post.downCount || 0 }}
-
-
-
-
-
-
- +{{ extraRecommenders }}명이 추천했습니다
- {{ post.upCount }}명이 추천했습니다
-
+
+
+
+
@@ -243,7 +255,7 @@ onMounted(load)
:name="c.authorName"
:google-picture="c.authorGooglePicture"
:profile-image="c.authorProfileImage"
- :size="24"
+ :size="16"
/>
{{ c.authorName }}
@@ -279,29 +291,6 @@ onMounted(load)
-
-
-
-
-
-
- 추천한 사람 {{ post?.upCount || 0 }}명
-
-
-
-
-
-
@@ -362,26 +351,30 @@ h1 {
background: rgba(230, 126, 34, 0.08);
}
/* 추천자 */
+.recommenders-wrap {
+ margin-bottom: 0.75rem;
+}
.recommenders {
display: flex;
align-items: center;
gap: 0.6rem;
flex-wrap: wrap;
+ width: 100%;
padding: 0.6rem 0.8rem;
border: 1px solid var(--color-border);
border-radius: 8px;
background: var(--color-background-soft);
cursor: pointer;
- margin-bottom: 0.5rem;
+ text-align: left;
}
.recommenders:hover {
background: var(--color-background-mute);
}
.rec-avatars {
- display: flex;
+ display: inline-flex;
}
.rec-avatar {
- margin-left: -6px;
+ margin-left: -4px;
box-shadow: 0 0 0 2px var(--color-background-soft);
}
.rec-avatar:first-child {
@@ -392,6 +385,30 @@ h1 {
color: var(--color-text);
opacity: 0.85;
}
+.rec-toggle {
+ margin-left: auto;
+ font-size: 0.7rem;
+ opacity: 0.6;
+}
+.rec-inline-list {
+ list-style: none;
+ margin: 0.4rem 0 0;
+ padding: 0.3rem 0.5rem;
+ border: 1px solid var(--color-border);
+ border-radius: 8px;
+ display: flex;
+ flex-direction: column;
+ gap: 0.1rem;
+}
+.rec-inline-list li {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0.35rem 0.4rem;
+}
+.rec-name {
+ font-size: 0.9rem;
+}
.tags {
display: flex;
gap: 0.4rem;
@@ -520,50 +537,6 @@ button.notice-btn {
border-color: #e67e22;
color: #e67e22;
}
-/* 추천자 모달 */
-.rec-modal-backdrop {
- position: fixed;
- inset: 0;
- z-index: 2000;
- background: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 1rem;
-}
-.rec-modal {
- width: 100%;
- max-width: 360px;
- max-height: 70vh;
- display: flex;
- flex-direction: column;
- background: var(--color-background);
- border: 1px solid var(--color-border);
- border-radius: 10px;
- overflow: hidden;
-}
-.rec-modal-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0.85rem 1rem;
- border-bottom: 1px solid var(--color-border);
-}
-.rec-modal-list {
- list-style: none;
- margin: 0;
- padding: 0.5rem 0;
- overflow-y: auto;
-}
-.rec-modal-list li {
- display: flex;
- align-items: center;
- gap: 0.6rem;
- padding: 0.5rem 1rem;
-}
-.rec-name {
- font-size: 0.95rem;
-}
.comment-form {
margin-top: 1rem;
}
diff --git a/src/views/board/BoardListView.vue b/src/views/board/BoardListView.vue
index 366b979..f574126 100644
--- a/src/views/board/BoardListView.vue
+++ b/src/views/board/BoardListView.vue
@@ -157,6 +157,7 @@ onMounted(loadTags)
제목 |
작성자 |
조회 |
+
추천 |
작성일 |
@@ -171,7 +172,6 @@ onMounted(loadTags)
{{ p.title }}
제한
-
👍 {{ p.upCount }}
@@ -180,12 +180,13 @@ onMounted(loadTags)
:name="p.authorName"
:google-picture="p.authorGooglePicture"
:profile-image="p.authorProfileImage"
- :size="22"
+ :size="16"
/>
{{ p.authorName }}
|
{{ p.viewCount }} |
+
{{ p.upCount || 0 }} |
{{ formatRelative(p.createdAt) }} |
@@ -318,6 +319,10 @@ button:disabled {
width: 60px;
text-align: center;
}
+.col-recommend {
+ width: 56px;
+ text-align: center;
+}
.col-author {
width: 130px;
}
@@ -341,12 +346,6 @@ button:disabled {
color: hsla(160, 100%, 37%, 1);
font-size: 0.85rem;
}
-.recommend-count {
- margin-left: 0.35rem;
- color: var(--color-text);
- opacity: 0.7;
- font-size: 0.82rem;
-}
.blocked-msg {
color: #c0392b;
font-size: 0.9rem;
@@ -517,9 +516,15 @@ button:disabled {
.post-table .col-num::before {
content: '· 조회 ';
}
- .post-table .col-date {
+ .post-table .col-recommend {
order: 4;
}
+ .post-table .col-recommend::before {
+ content: '· 추천 ';
+ }
+ .post-table .col-date {
+ order: 5;
+ }
.post-table .col-date::before {
content: '· ';
}