|
|
|
|
@@ -54,18 +54,6 @@ function openList(t) {
|
|
|
|
|
router.push(`/editor/${t.gameId}/${t.id}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function removeList(t) {
|
|
|
|
|
error.value = ''
|
|
|
|
|
try {
|
|
|
|
|
const ok = window.confirm(`"${t.title}" 티어표를 삭제할까요?`)
|
|
|
|
|
if (!ok) return
|
|
|
|
|
await api.deleteTierList(t.id)
|
|
|
|
|
myLists.value = myLists.value.filter((entry) => entry.id !== t.id)
|
|
|
|
|
toast.success('티어표를 삭제했어요.')
|
|
|
|
|
} catch (e) {
|
|
|
|
|
error.value = '티어표 삭제에 실패했어요.'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
@@ -101,7 +89,6 @@ async function removeList(t) {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="link link--danger" @click="removeList(t)">삭제</button>
|
|
|
|
|
</article>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -115,25 +102,17 @@ async function removeList(t) {
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
.link {
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
border-radius: 14px;
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
|
|
|
background: rgba(255, 255, 255, 0.06);
|
|
|
|
|
color: rgba(255, 255, 255, 0.92);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
}
|
|
|
|
|
.empty {
|
|
|
|
|
opacity: 0.75;
|
|
|
|
|
}
|
|
|
|
|
.list {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
|
|
|
gap: 18px;
|
|
|
|
|
}
|
|
|
|
|
.boardCard {
|
|
|
|
|
display: grid;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
border-radius: 22px;
|
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.16);
|
|
|
|
|
background: rgba(62, 62, 62, 0.82);
|
|
|
|
|
@@ -184,30 +163,40 @@ async function removeList(t) {
|
|
|
|
|
border-radius: 18px;
|
|
|
|
|
}
|
|
|
|
|
.boardCard__title {
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
.boardCard__head {
|
|
|
|
|
padding: 16px 18px 18px;
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
.boardCard__titleRow,
|
|
|
|
|
.boardCard__metaRow {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.boardCard__titleRow {
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.boardCard__metaRow {
|
|
|
|
|
align-items: flex-end;
|
|
|
|
|
}
|
|
|
|
|
.boardCard__author {
|
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
gap: 7px;
|
|
|
|
|
@@ -246,21 +235,6 @@ async function removeList(t) {
|
|
|
|
|
.boardCard__date {
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
}
|
|
|
|
|
.link--danger {
|
|
|
|
|
background: rgba(239, 68, 68, 0.14);
|
|
|
|
|
border-color: rgba(239, 68, 68, 0.28);
|
|
|
|
|
margin: 0 18px 18px;
|
|
|
|
|
}
|
|
|
|
|
@media (max-width: 1400px) {
|
|
|
|
|
.list {
|
|
|
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@media (max-width: 1024px) {
|
|
|
|
|
.list {
|
|
|
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@media (max-width: 720px) {
|
|
|
|
|
.list {
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|