feat: add check backup

This commit is contained in:
2026-03-16 11:30:34 +01:00
parent 3f00c229cb
commit 5495e18173
10 changed files with 678 additions and 95 deletions

View File

@@ -56,12 +56,15 @@ const { data: messages, error } = await useFetch('/api/discord/messages', {
<style scoped>
.discord-card {
background: rgb(var(--m-secondary));
border-radius: 12px;
background:
linear-gradient(180deg, rgb(var(--m-secondary) / 0.78), rgb(var(--m-secondary) / 0.92));
border-radius: 20px;
padding: 1.25rem;
border: 1px solid rgb(var(--m-border) / 0.32);
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03);
max-height: calc(100vh - 7rem);
overflow: hidden;
transition: background-color 0.4s ease;
transition: background-color 0.4s ease, border-color 0.2s ease;
}
.card-header {
@@ -83,7 +86,11 @@ const { data: messages, error } = await useFetch('/api/discord/messages', {
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 220px;
padding: 2rem 1rem;
border-radius: 14px;
background: rgb(var(--m-tertiary) / 0.28);
text-align: center;
}
.error-state {
@@ -95,7 +102,7 @@ const { data: messages, error } = await useFetch('/api/discord/messages', {
.message-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
gap: 0.65rem;
max-height: calc(100vh - 12rem);
overflow-y: auto;
}
@@ -103,10 +110,10 @@ const { data: messages, error } = await useFetch('/api/discord/messages', {
.message-row {
display: flex;
gap: 0.75rem;
padding: 0.75rem;
border-radius: 8px;
background: rgb(var(--m-tertiary));
border: 1px solid rgb(var(--m-accent) / 0.04);
padding: 0.85rem;
border-radius: 14px;
background: rgb(var(--m-tertiary) / 0.74);
border: 1px solid rgb(var(--m-border) / 0.22);
}
.message-avatar {
@@ -123,4 +130,20 @@ const { data: messages, error } = await useFetch('/api/discord/messages', {
color: rgb(var(--m-accent));
flex-shrink: 0;
}
@media (max-width: 1180px) {
.discord-card {
max-height: none;
}
.message-list {
max-height: 28rem;
}
}
@media (max-width: 820px) {
.discord-card {
padding: 1rem;
}
}
</style>