You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
style date separator
This commit is contained in:
@@ -16,10 +16,21 @@ limitations under the License.
|
|||||||
|
|
||||||
.mx_DateSeparator {
|
.mx_DateSeparator {
|
||||||
clear: both;
|
clear: both;
|
||||||
margin-top: 32px;
|
margin: 4px 0;
|
||||||
margin-bottom: 8px;
|
display: flex;
|
||||||
margin-left: 63px;
|
align-items: center;
|
||||||
padding-bottom: 6px;
|
font-size: 14px;
|
||||||
border-bottom: 1px solid $primary-hairline-color;
|
color: $roomtopic-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_DateSeparator > hr {
|
||||||
|
flex: 1 1 0;
|
||||||
|
height: 0;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid $panel-divider-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_DateSeparator > date {
|
||||||
|
margin: 0 25px;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|||||||
@@ -56,6 +56,6 @@ export default class DateSeparator extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <h2 className="mx_DateSeparator">{ this.getLabel() }</h2>;
|
return <h2 className="mx_DateSeparator"><hr/><date>{ this.getLabel() }</date><hr/></h2>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user