Skip to content

Commit 3008298

Browse files
committed
Fix live UI
1 parent a74498a commit 3008298

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

src/pages/StreamPage.module.scss

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,26 +155,34 @@
155155
gap: 16px;
156156
padding: 8px;
157157
height: calc(100dvh - 154px);
158-
overflow-y: scroll;
158+
overflow: hidden;
159+
160+
&:hover {
161+
width: calc(100% + 6px);
162+
overflow-y: scroll;
163+
}
164+
159165
}
160166

161167
.liveMessage {
162168
display: flex;
163169
gap: 8px;
170+
padding-left: 9px;
164171

165172
.leftSide {
166173
width: 24px;
167174
}
168175

169176
.rightSide {
177+
line-height: 20px;
170178
.authorName {
171179
color: var(--text-primary);
172180
font-size: 16px;
173181
font-weight: 700;
174182
line-height: 16px;
175183
width: fit-content;
176184
margin-right: 4px;
177-
display: flex;
185+
/* display: flex; */
178186
gap: 4px;
179187

180188
>span {
@@ -212,20 +220,22 @@
212220

213221
&.zapMessage {
214222
width: 100%;
215-
padding-block: 10px;
223+
padding-block: 8px;
216224
padding-inline: 8px;
217225
border-radius: 8px;
218226
border: 1px solid #E47C00;
219227
background: rgba(228, 124, 0, 0.20);
220228

221229
.rightSide {
222230
width: 100%;
231+
line-height: 20px;
223232

224233
.zapInfo {
225234
display: flex;
226235
width: 100%;
227236
justify-content: space-between;
228237
align-items: center;
238+
margin-bottom: 4px;
229239
}
230240

231241
.authorName {
@@ -394,17 +404,21 @@
394404
.zapStats {
395405
display: flex;
396406
flex-direction: column;
397-
gap: 12px;
407+
justify-content: flex-end;
408+
gap: 8px;
398409

399410
.zapButton {
400411
width: 100%;
412+
height: 32px;
401413
}
402414

403415
.statsLine {
404416
display: flex;
405417
min-width: 180px;
406418
align-items: center;
407419
gap: 8px;
420+
padding-inline: 8px;
421+
padding-block: 11px;
408422

409423
.totalZaps {
410424
color: var(--text-secondary);
@@ -448,21 +462,21 @@
448462

449463
.firstZapAmount {
450464
color: var(--text-primary);
451-
font-size: 14px;
465+
font-size: 16px;
452466
font-weight: 700;
453467
line-height: 18px;
454468
}
455469

456470
.zapAmount {
457471
color: var(--text-secondary);
458-
font-size: 14px;
472+
font-size: 16px;
459473
font-weight: 400;
460474
line-height: 18px;
461475
}
462476

463477
.zapMessage {
464478
color: var(--text-secondary);
465-
font-size: 14px;
479+
font-size: 16px;
466480
font-weight: 400;
467481
line-height: 18px;
468482
}

src/pages/StreamPage.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -289,17 +289,13 @@ const StreamPage: Component = () => {
289289
<div class={styles.liveMessage}>
290290
<Show when={author(event.pubkey)}>
291291
<div class={styles.leftSide}>
292-
<Avatar user={author(event.pubkey)} size="micro" />
292+
<Avatar user={author(event.pubkey)} size="xss" />
293293
</div>
294294
</Show>
295295
<div class={styles.rightSide}>
296296
<Show when={author(event.pubkey)}>
297297
<span class={styles.authorName}>
298298
{userName(author(event.pubkey))}
299-
<VerificationCheck
300-
user={author(event.pubkey)}
301-
inline={true}
302-
/>
303299
</span>
304300
</Show>
305301
<span class={styles.messageContent}>
@@ -317,18 +313,14 @@ const StreamPage: Component = () => {
317313
return (
318314
<div class={`${styles.liveMessage} ${styles.zapMessage}`}>
319315
<div class={styles.leftSide}>
320-
<Avatar user={author(zap.sender as string)} size="micro" />
316+
<Avatar user={author(zap.sender as string)} size="xss" />
321317
</div>
322318
<div class={styles.rightSide}>
323319
<span class={styles.zapInfo}>
324320
<span class={styles.authorName}>
325321
<span>
326322
{userName(author(zap.sender as string), zap.sender as string)}
327323
</span>
328-
<VerificationCheck
329-
user={author(zap.sender as string)}
330-
inline={true}
331-
/>
332324
<span class={styles.zapped}>
333325
zapped
334326
</span>
@@ -375,7 +367,7 @@ const StreamPage: Component = () => {
375367
fallback={<TopZapSkeleton />}
376368
>
377369
<div class={styles.topZap}>
378-
<Avatar user={author(zap?.sender as string)} size="micro" />
370+
<Avatar user={author(zap?.sender as string)} size="vvs" />
379371
<div class={styles.amount}>
380372
<div class={styles.zapIcon}></div>
381373
<div class={styles.firstZapAmount}>{humanizeNumber(zap?.amount)}</div>
@@ -389,7 +381,7 @@ const StreamPage: Component = () => {
389381
}
390382

391383
const renderRestZaps = () => {
392-
const zaps = topZaps().slice(1, 6);
384+
const zaps = topZaps().slice(1, 5);
393385

394386
return <div class={styles.restZaps}>
395387
<For each={zaps}>

0 commit comments

Comments
 (0)