Skip to content

Commit 0eb63cf

Browse files
committed
게시글 수정 저장 버튼 추가
1 parent cb9bc0b commit 0eb63cf

2 files changed

Lines changed: 38 additions & 29 deletions

File tree

sciq-fe/src/pages/Board/BoardDetail.vue

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -628,33 +628,46 @@ onMounted(() => {
628628
629629
.button-group {
630630
display: flex;
631-
gap: 0.5rem;
631+
gap: 8px;
632632
}
633633
634-
.edit-button, .save-button, .cancel-button {
634+
.button-group button {
635635
display: flex;
636636
align-items: center;
637-
gap: 0.25rem;
638-
padding: 0.5rem 0.75rem;
639-
border-radius: 4px;
640-
font-size: 0.875rem;
641-
cursor: pointer;
637+
gap: 4px;
638+
padding: 8px 16px;
642639
border: none;
640+
border-radius: 8px;
641+
font-size: 14px;
642+
cursor: pointer;
643+
transition: background-color 0.2s;
643644
}
644645
645646
.edit-button {
646-
background: #1a73e8;
647+
background-color: #007bff;
647648
color: white;
648649
}
649650
651+
.edit-button:hover {
652+
background-color: #0056b3;
653+
}
654+
650655
.save-button {
651-
background: #28a745;
656+
background-color: #28a745;
652657
color: white;
653658
}
654659
660+
.save-button:hover {
661+
background-color: #218838;
662+
}
663+
655664
.cancel-button {
656-
background: #6c757d;
657-
color: white;
665+
background-color: #f0f0f0;
666+
color: #666;
667+
}
668+
669+
.cancel-button:hover {
670+
background-color: #e0e0e0;
658671
}
659672
660673
.post-info {

sciq-fe/src/pages/Board/BoardEdit.vue

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -197,43 +197,39 @@ onMounted(() => {
197197
198198
.button-group {
199199
display: flex;
200-
gap: 1rem;
200+
gap: 12px;
201201
}
202202
203-
.cancel-button,
204-
.submit-button {
203+
.button-group button {
205204
display: flex;
206205
align-items: center;
207-
gap: 0.5rem;
208-
padding: 0.5rem 1rem;
209-
border-radius: 4px;
210-
cursor: pointer;
211-
font-size: 0.9rem;
206+
gap: 4px;
207+
padding: 8px 16px;
212208
border: none;
209+
border-radius: 8px;
210+
font-size: 14px;
211+
cursor: pointer;
212+
transition: background-color 0.2s;
213213
}
214214
215215
.cancel-button {
216-
background-color: #6c757d;
217-
color: white;
216+
background-color: #f0f0f0;
217+
color: #666;
218+
}
219+
220+
.cancel-button:hover {
221+
background-color: #e0e0e0;
218222
}
219223
220224
.submit-button {
221225
background-color: #007bff;
222226
color: white;
223227
}
224228
225-
.cancel-button:hover {
226-
background-color: #5a6268;
227-
}
228-
229229
.submit-button:hover {
230230
background-color: #0056b3;
231231
}
232232
233-
.material-icons {
234-
font-size: 1.1rem;
235-
}
236-
237233
.form-group {
238234
position: relative;
239235
margin-bottom: 20px;

0 commit comments

Comments
 (0)