feature/liquid-glass-ui: glass-карточка для тела письма

- MessageBody: стеклянный контейнер вокруг iframe (border-radius 12px,
  backdrop-filter blur(20px), border, inset specular)
- iframe body: background: transparent — контент плавает на glass-поверхности
- Внутренний CSS писем обновлён: blockquote стал glass-панелью,
  hr — тонкой glass-линией, pre/code — glass-блоком с border
- MessagePreview: loading-state — glass-карточка (border-radius,
  backdrop-filter) вместо пустого flex; spinner тоньше
- margin: 10px 14px 14px на body-card для дыхания

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
d.a.kolesov 2026-04-06 10:17:59 +07:00
parent 166f7793c6
commit 60131138fd
2 changed files with 59 additions and 19 deletions

View file

@ -74,8 +74,9 @@ const processedHtml = computed(() => {
<head>
<meta charset="utf-8">
<style>
* { box-sizing: border-box; }
body {
background: #0d0d11;
background: transparent;
color: rgba(255,255,255,0.88);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
@ -85,20 +86,37 @@ const processedHtml = computed(() => {
word-wrap: break-word;
overflow-wrap: break-word;
}
a { color: #a8e600; }
img { max-width: 100%; height: auto; border-radius: 6px; }
table { max-width: 100%; }
pre, code {
background: rgba(255,255,255,0.07);
padding: 2px 6px;
border-radius: 4px;
font-size: 13px;
a { color: #a8e600; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 8px; }
table { max-width: 100%; border-collapse: collapse; }
hr {
border: none;
border-top: 1px solid rgba(255,255,255,0.08);
margin: 16px 0;
}
pre, code {
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.09);
padding: 2px 7px;
border-radius: 5px;
font-size: 13px;
font-family: 'Cascadia Code', 'Fira Code', monospace;
}
pre {
padding: 12px 16px;
overflow-x: auto;
line-height: 1.5;
}
pre code { background: none; border: none; padding: 0; }
blockquote {
border-left: 3px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.08);
border-left: 3px solid rgba(255,255,255,0.20);
border-radius: 0 6px 6px 0;
margin: 10px 0;
padding: 4px 14px;
color: rgba(255,255,255,0.45);
padding: 8px 14px;
color: rgba(255,255,255,0.50);
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
@ -129,7 +147,7 @@ const plainTextHtml = computed(() => {
<meta charset="utf-8">
<style>
body {
background: #0d0d11;
background: transparent;
color: rgba(255,255,255,0.88);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
@ -139,7 +157,8 @@ const plainTextHtml = computed(() => {
white-space: pre-wrap;
word-wrap: break-word;
}
a { color: #a8e600; }
a { color: #a8e600; text-decoration: none; }
a:hover { text-decoration: underline; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
@ -246,6 +265,16 @@ onUnmounted(() => {
.message-body {
flex: 1;
overflow: hidden;
margin: 10px 14px 14px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 8px 32px rgba(0, 0, 0, 0.30);
background: rgba(10, 10, 16, 0.82);
backdrop-filter: blur(20px) saturate(1.5);
-webkit-backdrop-filter: blur(20px) saturate(1.5);
position: relative;
}
.body-frame {
@ -253,6 +282,7 @@ onUnmounted(() => {
height: 100%;
border: none;
background: transparent;
display: block;
}
.no-body {
@ -261,5 +291,6 @@ onUnmounted(() => {
justify-content: center;
height: 100%;
color: var(--text-muted);
font-size: 13px;
}
</style>

View file

@ -47,6 +47,7 @@ const selectedMessage = computed(() =>
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.no-selection {
@ -57,10 +58,11 @@ const selectedMessage = computed(() =>
justify-content: center;
gap: 12px;
color: var(--text-muted);
font-size: 13px;
}
.no-selection-icon {
opacity: 0.18;
opacity: 0.15;
color: var(--text-muted);
}
@ -70,14 +72,21 @@ const selectedMessage = computed(() =>
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
gap: 14px;
color: var(--text-muted);
font-size: 13px;
margin: 0 14px 14px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.06);
background: rgba(10, 10, 16, 0.60);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
.spinner {
width: 24px;
height: 24px;
border: 2px solid var(--border);
width: 22px;
height: 22px;
border: 1.5px solid rgba(255, 255, 255, 0.10);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;