Skip to content

Commit 977b223

Browse files
committed
Hopefully working CSS that doesn't cause the messages to jump about when a read marker disappears.
1 parent 6cd0aeb commit 977b223

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎config.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"default_hs_url": "https://matrix.org",
2+
"default_hs_url": "http://localhost:8008",
33
"default_is_url": "https://vector.im"
44
}

‎src/skins/vector/css/matrix-react-sdk/structures/RoomView.css‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,13 @@ li.mx_RoomView_myReadMarker_container {
168168
height: 0px;
169169
margin: 0px;
170170
padding: 0px;
171-
margin-bottom: -8px;
172171
border: 0px;
173172
}
174173

175174
hr.mx_RoomView_myReadMarker {
176175
border-top: solid 1px #76cfa6;
177176
border-bottom: solid 1px #76cfa6;
178-
margin-top: -1px;
179-
margin-bottom: -1px;
177+
margin-top: 0px;
180178
}
181179

182180
.mx_RoomView_statusArea {

‎src/skins/vector/css/matrix-react-sdk/views/rooms/EventTile.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ limitations under the License.
135135
z-index: 1;
136136
position: relative;
137137
width: 90px;
138+
height: 1px; /* Hack to stop the height of this pushing the messages apart. Replaces marigin-top: -6px. This interacts better with a read marker being in between. Content overflows. */
138139
margin-right: 10px;
139-
margin-top: -6px;
140140
}
141141

142142
.mx_EventTile .mx_MessageTimestamp {

0 commit comments

Comments
 (0)