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:
parent
166f7793c6
commit
60131138fd
2 changed files with 59 additions and 19 deletions
|
|
@ -74,8 +74,9 @@ const processedHtml = computed(() => {
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<style>
|
<style>
|
||||||
|
* { box-sizing: border-box; }
|
||||||
body {
|
body {
|
||||||
background: #0d0d11;
|
background: transparent;
|
||||||
color: rgba(255,255,255,0.88);
|
color: rgba(255,255,255,0.88);
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
@ -85,20 +86,37 @@ const processedHtml = computed(() => {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
a { color: #a8e600; }
|
a { color: #a8e600; text-decoration: none; }
|
||||||
img { max-width: 100%; height: auto; border-radius: 6px; }
|
a:hover { text-decoration: underline; }
|
||||||
table { max-width: 100%; }
|
img { max-width: 100%; height: auto; border-radius: 8px; }
|
||||||
pre, code {
|
table { max-width: 100%; border-collapse: collapse; }
|
||||||
background: rgba(255,255,255,0.07);
|
hr {
|
||||||
padding: 2px 6px;
|
border: none;
|
||||||
border-radius: 4px;
|
border-top: 1px solid rgba(255,255,255,0.08);
|
||||||
font-size: 13px;
|
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 {
|
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;
|
margin: 10px 0;
|
||||||
padding: 4px 14px;
|
padding: 8px 14px;
|
||||||
color: rgba(255,255,255,0.45);
|
color: rgba(255,255,255,0.50);
|
||||||
}
|
}
|
||||||
::-webkit-scrollbar { width: 4px; height: 4px; }
|
::-webkit-scrollbar { width: 4px; height: 4px; }
|
||||||
::-webkit-scrollbar-track { background: transparent; }
|
::-webkit-scrollbar-track { background: transparent; }
|
||||||
|
|
@ -129,7 +147,7 @@ const plainTextHtml = computed(() => {
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background: #0d0d11;
|
background: transparent;
|
||||||
color: rgba(255,255,255,0.88);
|
color: rgba(255,255,255,0.88);
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
@ -139,7 +157,8 @@ const plainTextHtml = computed(() => {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
word-wrap: break-word;
|
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 { width: 4px; height: 4px; }
|
||||||
::-webkit-scrollbar-track { background: transparent; }
|
::-webkit-scrollbar-track { background: transparent; }
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
|
|
@ -246,6 +265,16 @@ onUnmounted(() => {
|
||||||
.message-body {
|
.message-body {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
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 {
|
.body-frame {
|
||||||
|
|
@ -253,6 +282,7 @@ onUnmounted(() => {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-body {
|
.no-body {
|
||||||
|
|
@ -261,5 +291,6 @@ onUnmounted(() => {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ const selectedMessage = computed(() =>
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-selection {
|
.no-selection {
|
||||||
|
|
@ -57,10 +58,11 @@ const selectedMessage = computed(() =>
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-selection-icon {
|
.no-selection-icon {
|
||||||
opacity: 0.18;
|
opacity: 0.15;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -70,14 +72,21 @@ const selectedMessage = computed(() =>
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 12px;
|
gap: 14px;
|
||||||
color: var(--text-muted);
|
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 {
|
.spinner {
|
||||||
width: 24px;
|
width: 22px;
|
||||||
height: 24px;
|
height: 22px;
|
||||||
border: 2px solid var(--border);
|
border: 1.5px solid rgba(255, 255, 255, 0.10);
|
||||||
border-top-color: var(--accent);
|
border-top-color: var(--accent);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
animation: spin 0.8s linear infinite;
|
animation: spin 0.8s linear infinite;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue