Rich media link previews
This commit is contained in:
+98
-1
@@ -1335,4 +1335,101 @@ a.btn-primary:visited {
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background-color: var(--foreground-secondary);
|
||||
}
|
||||
}
|
||||
/* Link Preview Styles */
|
||||
.link-preview-card {
|
||||
display: block;
|
||||
margin-top: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
text-decoration: none;
|
||||
background: var(--background-secondary);
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.link-preview-card:hover {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.link-preview-image img {
|
||||
width: 100%;
|
||||
max-height: 240px;
|
||||
object-fit: cover;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.link-preview-info {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.link-preview-title {
|
||||
font-weight: 600;
|
||||
color: var(--foreground);
|
||||
margin-bottom: 4px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.link-preview-description {
|
||||
font-size: 13px;
|
||||
color: var(--foreground-secondary);
|
||||
margin-bottom: 8px;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.link-preview-url {
|
||||
font-size: 12px;
|
||||
color: var(--foreground-tertiary);
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
/* Compose Preview */
|
||||
.compose-link-preview {
|
||||
margin-top: 12px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.compose-link-preview-remove {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: rgba(0,0,0,0.6);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
z-index: 5;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.link-preview-card.mini {
|
||||
display: flex;
|
||||
max-height: 80px;
|
||||
}
|
||||
|
||||
.link-preview-card.mini .link-preview-image {
|
||||
width: 80px;
|
||||
min-width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.link-preview-card.mini .link-preview-image img {
|
||||
height: 80px;
|
||||
border-bottom: none;
|
||||
border-right: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.link-preview-card.mini .link-preview-info {
|
||||
padding: 8px 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user