MM-61318 Don't apply extra CSS to Markdown headings in thread list (#29138)

Этот коммит содержится в:
Harrison Healey
2024-11-15 12:24:37 -05:00
коммит произвёл GitHub
родитель c519bee236
Коммит 9c5c394c56
3 изменённых файлов: 17 добавлений и 17 удалений

Просмотреть файл

@@ -7,7 +7,7 @@ exports[`components/threading/global_threads/thread_item should report total num
onClick={[Function]} onClick={[Function]}
tabIndex={0} tabIndex={0}
> >
<h1> <header>
<div <div
className="ThreadItem__author" className="ThreadItem__author"
> >
@@ -35,7 +35,7 @@ exports[`components/threading/global_threads/thread_item should report total num
} }
useTime={false} useTime={false}
/> />
</h1> </header>
<div <div
className="menu-anchor alt-visible" className="menu-anchor alt-visible"
> >
@@ -123,7 +123,7 @@ exports[`components/threading/global_threads/thread_item should report unread me
onClick={[Function]} onClick={[Function]}
tabIndex={0} tabIndex={0}
> >
<h1> <header>
<div <div
className="indicator" className="indicator"
> >
@@ -160,7 +160,7 @@ exports[`components/threading/global_threads/thread_item should report unread me
} }
useTime={false} useTime={false}
/> />
</h1> </header>
<div <div
className="menu-anchor alt-visible" className="menu-anchor alt-visible"
> >
@@ -248,7 +248,7 @@ exports[`components/threading/global_threads/thread_item should report unread me
onClick={[Function]} onClick={[Function]}
tabIndex={0} tabIndex={0}
> >
<h1> <header>
<div <div
className="indicator" className="indicator"
> >
@@ -283,7 +283,7 @@ exports[`components/threading/global_threads/thread_item should report unread me
} }
useTime={false} useTime={false}
/> />
</h1> </header>
<div <div
className="menu-anchor alt-visible" className="menu-anchor alt-visible"
> >

Просмотреть файл

@@ -105,7 +105,7 @@
place-content: center; place-content: center;
} }
h1 { > header {
position: relative; position: relative;
display: grid; display: grid;
margin: 0 0 6px; margin: 0 0 6px;
@@ -117,6 +117,14 @@
justify-items: start; justify-items: start;
line-height: 20px; line-height: 20px;
white-space: nowrap; white-space: nowrap;
> time {
color: rgba(var(--center-channel-color-rgb), 0.75);
font-size: 12px;
font-weight: normal;
grid-column: 3/4;
line-height: 20px;
}
} }
div.preview { div.preview {
@@ -127,14 +135,6 @@
@include mixins.text-clamp(2, 20); @include mixins.text-clamp(2, 20);
} }
time {
color: rgba(var(--center-channel-color-rgb), 0.75);
font-size: 12px;
font-weight: normal;
grid-column: 3/4;
line-height: 20px;
}
.menu-anchor { .menu-anchor {
position: absolute; position: absolute;
top: 12px; top: 12px;

Просмотреть файл

@@ -182,7 +182,7 @@ function ThreadItem({
id={isFirstThreadInList ? 'tutorial-threads-mobile-list' : ''} id={isFirstThreadInList ? 'tutorial-threads-mobile-list' : ''}
onClick={selectHandler} onClick={selectHandler}
> >
<h1> <header>
{Boolean(newMentions || newReplies) && ( {Boolean(newMentions || newReplies) && (
<div className='indicator'> <div className='indicator'>
{newMentions ? ( {newMentions ? (
@@ -217,7 +217,7 @@ function ThreadItem({
className='alt-hidden' className='alt-hidden'
value={lastReplyAt} value={lastReplyAt}
/> />
</h1> </header>
<div className='menu-anchor alt-visible'> <div className='menu-anchor alt-visible'>
<ThreadMenu <ThreadMenu
threadId={threadId} threadId={threadId}