summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/style.css')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/style.css52
1 files changed, 52 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/style.css b/packages/meshbay-hub/src/meshbay_hub/static/style.css
index 975f47c..61a5e3b 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/style.css
+++ b/packages/meshbay-hub/src/meshbay_hub/static/style.css
@@ -581,6 +581,58 @@ button:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-text { white-space: pre-wrap; }
+/* Link unfurl card. Sits on its own line inside the bubble and carries its
+ own surface colours so it stays readable inside an own-message bubble too. */
+.chat-link-preview {
+ flex: 0 0 100%;
+ display: flex;
+ gap: 10px;
+ margin-top: 4px;
+ padding: 8px;
+ max-width: 380px;
+ border: 1px solid var(--border);
+ border-left: 3px solid var(--accent);
+ border-radius: 8px;
+ background: var(--bg-base);
+ color: var(--text);
+ text-decoration: none;
+ overflow: hidden;
+}
+.chat-link-preview:hover { background: var(--bg-surface); }
+.clp-img {
+ width: 72px;
+ height: 72px;
+ flex-shrink: 0;
+ object-fit: cover;
+ border-radius: 6px;
+ background: var(--bg-surface);
+}
+.clp-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
+.clp-site {
+ font-size: 0.7em;
+ color: var(--text-dim);
+ text-transform: uppercase;
+ letter-spacing: 0.03em;
+}
+.clp-title {
+ font-weight: 600;
+ font-size: 0.9em;
+ line-height: 1.3;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+.clp-desc {
+ font-size: 0.82em;
+ color: var(--text-secondary);
+ line-height: 1.35;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
.chat-time {
font-size: 0.65em;
color: var(--text-dim);