diff --git a/src/components/Note/Note.module.scss b/src/components/Note/Note.module.scss index 855c917..7d1336d 100644 --- a/src/components/Note/Note.module.scss +++ b/src/components/Note/Note.module.scss @@ -1,4 +1,115 @@ .note { + position: relative; + display: flex; + flex-direction: column; + gap: 6px; + padding: 12px; + margin: 0px; + + text-decoration: none; + color: unset; + background-color: var(--background-site); + border: none; + border-bottom: 1px solid var(--devider); + border-radius: 0; + + -webkit-user-select: text; + -moz-select: text; + -ms-select: text; + user-select: text; + + width: 100%; + + &.parent { + border: none; + } + + &.reactionNote { + background: none; + border-bottom: 1px solid var(--subtile-devider); + } + + .userHeader { + display: flex; + justify-content: flex-start; + align-items: center; + width: 100%; + gap: 8px; + } + + .header { + position: relative; + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + + .repostedBy { + padding-bottom: 8px; + display: flex; + >span { + >a { + margin-inline: 5px; + color: var(--text-tertiary); + text-decoration: none; + } + color: var(--text-tertiary); + font-size: 14px; + line-height: 14px; + font-weight: 400; + >span { + text-transform: lowercase; + } + } + } + } + + .message { + color: var(--text-primary); + word-break: break-word; + font-size: 16px; + font-weight: 400; + line-height: 20px; + margin-top: 4px; + margin-bottom: 12px; + width: 100%; + overflow: hidden; + } + + .replyingTo { + display: flex; + font-size: 15px; + font-weight: 400; + line-height: 20px; + margin-top: 6px; + max-width: 518px; + text-overflow: ellipsis; + white-space: nowrap; + .label { + color: var(--text-primary); + } + a { + max-width: 440px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + .author { + display: inline-block; + color: var(--accent-links); + text-decoration: none; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + + &:hover { + text-decoration: underline; + } + } + } +} + +.noteThread { position: relative; display: flex; flex-direction: column; diff --git a/src/components/Note/Note.tsx b/src/components/Note/Note.tsx index e058746..d1b2dbb 100644 --- a/src/components/Note/Note.tsx +++ b/src/components/Note/Note.tsx @@ -49,7 +49,7 @@ const Note: Component<{ id?: string, parent?: boolean, shorten?: boolean, - noteType?: 'feed' | 'primary' | 'notification' | 'reaction' + noteType?: 'feed' | 'primary' | 'notification' | 'reaction' | 'thread' onClick?: () => void, quoteCount?: number, }> = (props) => { @@ -313,7 +313,7 @@ const Note: Component<{
- +
- +
+ + + +
+
+ + + + + + +
+ +
+
+ + + +
+ +
+ + openReactionModal('zaps')} + topZaps={reactionsState.topZapsFeed} + topZapLimit={4} + /> + + + +
+ + + navToThread(props.note)} + data-event={props.note.post.id} + data-event-bech32={props.note.post.noteId} + draggable={false} >
diff --git a/src/pages/NoteThread.tsx b/src/pages/NoteThread.tsx index 463dcac..c5e5c4f 100644 --- a/src/pages/NoteThread.tsx +++ b/src/pages/NoteThread.tsx @@ -187,7 +187,12 @@ const NoteThread: Component<{ noteId: string }> = (props) => { {note =>
- +
}
@@ -224,7 +229,11 @@ const NoteThread: Component<{ noteId: string }> = (props) => { {note =>
- +
}