refactor: improve superchat UI and gift membership handling

This commit is contained in:
Yusuf İpek
2025-10-05 23:41:32 +03:00
parent f1dd130bc0
commit e8f42a5676
5 changed files with 161 additions and 54 deletions
+58
View File
@@ -686,6 +686,17 @@ main {
align-self: flex-start; /* Align to the left */
}
.chatItem__superchat-inline {
padding: 0.3rem 0.6rem;
border-radius: 6px;
font-weight: 700;
font-size: 0.85rem;
color: #fff;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
margin-left: 0.5rem;
display: inline-block;
}
.chatItem__membership {
padding: 0.6rem 1rem;
background: linear-gradient(135deg, #10b981, #059669);
@@ -944,6 +955,53 @@ main {
align-self: flex-start;
}
.overlay__superchat-header {
padding: 1rem 1.5rem;
border-radius: 12px 12px 0 0;
color: #fff;
display: flex;
align-items: center;
gap: 0.5rem;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.overlay__superchat-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
border: 2px solid rgba(255, 255, 255, 0.3);
}
.overlay__superchat-name {
font-size: 1.6rem;
font-weight: 700;
}
.overlay__superchat-separator {
font-size: 1.4rem;
font-weight: 600;
opacity: 0.9;
}
.overlay__superchat-amount {
font-size: 1.6rem;
font-weight: 700;
}
.overlay__superchat-text {
padding: 1rem 1.5rem;
font-size: 1.1rem;
line-height: 1.6;
color: #e5e7eb;
font-weight: 400;
text-align: left;
word-break: break-word;
background: rgba(0, 0, 0, 0.3);
border-radius: 0 0 12px 12px;
margin: 0;
}
.overlay__membership {
background: linear-gradient(135deg, #10b981, #059669);
}