Skip to content

Commit

Permalink
Merge pull request #9219 from hicommonwealth/8727.israel.raymond-ui-bugs
Browse files Browse the repository at this point in the history
Raymond UI bugs fix
  • Loading branch information
Israellund authored Oct 23, 2024
2 parents 572eb90 + 12d3143 commit b2305a2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
display: flex;
gap: 4px;

.caption {
display: inline-block;
vertical-align: baseline;
}

.user-link-text {
&.disabled {
.user-display-name {
Expand Down Expand Up @@ -50,4 +55,4 @@
.token-req-text.Text {
color: $neutral-500;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export const CommentTree = ({
});

const scrollToRef = useRef(null);
const scrollToEditorRef = useRef(null);

const scrollToElement = () => {
if (scrollToRef.current) {
Expand All @@ -171,6 +172,17 @@ export const CommentTree = ({
}
};

const scrollToEditor = () => {
// @ts-expect-error <StrictNullChecks/>
scrollToEditorRef.current?.scrollIntoView({ behavior: 'smooth' });
};

useEffect(() => {
if (isReplying) {
scrollToEditor();
}
}, [isReplying]);

// eslint-disable-next-line @typescript-eslint/no-shadow
const handleIsReplying = (isReplying: boolean, id?: number) => {
if (isReplying) {
Expand Down

0 comments on commit b2305a2

Please sign in to comment.