diff --git a/package-lock.json b/package-lock.json index 7a47e84..b6cefde 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@vueup/vue-quill": "^1.2.0", "axios": "^1.7.9", "bootstrap": "^5.3.3", + "bootstrap-icons": "^1.11.3", "dayjs": "^1.11.13", "dompurify": "^3.2.3", "flatpickr": "^4.6.13", @@ -1890,6 +1891,22 @@ "@popperjs/core": "^2.11.8" } }, + "node_modules/bootstrap-icons": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.11.3.tgz", + "integrity": "sha512-+3lpHrCw/it2/7lBL15VR0HEumaBss0+f/Lb6ZvHISn1mlK83jjFpooTLsMWbIjJMDjDjOExMsTxnXSIT4k4ww==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "license": "MIT" + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", diff --git a/package.json b/package.json index 823ef27..866adaa 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@vueup/vue-quill": "^1.2.0", "axios": "^1.7.9", "bootstrap": "^5.3.3", + "bootstrap-icons": "^1.11.3", "dayjs": "^1.11.13", "dompurify": "^3.2.3", "flatpickr": "^4.6.13", diff --git a/src/components/list/BoardCard.vue b/src/components/list/BoardCard.vue index fe0eecc..1ddac0f 100644 --- a/src/components/list/BoardCard.vue +++ b/src/components/list/BoardCard.vue @@ -1,124 +1,142 @@ + - +// computed 속성 +const contentColClass = computed(() => { + return props.img ? 'col-sm-10 col-12' : 'col-sm-12'; +}); - + +.card:hover { + transform: scale(1.02); +} + +/* 텍스트 줄임 표시 */ +.str_wrap { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} + +/* 이미지 스타일 */ +.img-fluid { + border-radius: 8px 0 0 8px; +} + +/* 태그 배지 스타일 */ +.badge { + font-size: 0.8rem; + padding: 5px 10px; +} + diff --git a/src/components/list/BoardCardList.vue b/src/components/list/BoardCardList.vue index 430a73d..5b3c29a 100644 --- a/src/components/list/BoardCardList.vue +++ b/src/components/list/BoardCardList.vue @@ -1,10 +1,9 @@ diff --git a/src/components/wordDict/DictAlphabetFilter.vue b/src/components/wordDict/DictAlphabetFilter.vue index bdc0c15..e28e459 100644 --- a/src/components/wordDict/DictAlphabetFilter.vue +++ b/src/components/wordDict/DictAlphabetFilter.vue @@ -1,18 +1,25 @@ \ No newline at end of file + +@media (max-width: 768px) { + .alphabet-list { + overflow: scroll; + flex-wrap: nowrap !important; + } +} + diff --git a/src/components/wordDict/DictCard.vue b/src/components/wordDict/DictCard.vue index 9477747..1aa65c0 100644 --- a/src/components/wordDict/DictCard.vue +++ b/src/components/wordDict/DictCard.vue @@ -1,5 +1,5 @@ - diff --git a/src/views/wordDict/wordDict.vue b/src/views/wordDict/wordDict.vue index 1ba0c77..d6e3392 100644 --- a/src/views/wordDict/wordDict.vue +++ b/src/views/wordDict/wordDict.vue @@ -1,28 +1,28 @@