Skip to content

Commit c3ebe1f

Browse files
authored
Merge pull request element-hq#6288 from vector-im/luke/e2e-request-keys-button
Changes for E2E "fudge-button"
2 parents c051492 + 1119098 commit c3ebe1f

3 files changed

Lines changed: 31 additions & 3 deletions

File tree

‎src/components/views/rooms/RoomTooltip.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = React.createClass({
3131
tooltipClassName: React.PropTypes.string,
3232
// The tooltip is derived from either the room name or a label
3333
room: React.PropTypes.object,
34-
label: React.PropTypes.string,
34+
label: React.PropTypes.node,
3535
},
3636

3737
// Create a wrapper for the tooltip outside the parent and attach it to the body element

‎src/skins/vector/css/matrix-react-sdk/views/elements/_ToolTipButton.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ limitations under the License.
4444
}
4545

4646
.mx_ToolTipButton_helpText {
47-
width: 200px;
48-
text-align: center;
47+
width: 400px;
48+
text-align: start;
4949
line-height: 17px !important;
5050
}
5151

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,34 @@ limitations under the License.
298298
cursor: pointer;
299299
}
300300

301+
.mx_EventTile_keyRequestInfo {
302+
font-size: 12px;
303+
}
304+
305+
.mx_EventTile_keyRequestInfo_text {
306+
opacity: 0.5;
307+
}
308+
309+
.mx_EventTile_keyRequestInfo_text a {
310+
color: $primary-fg-color;
311+
text-decoration: underline;
312+
cursor: pointer;
313+
}
314+
315+
.mx_EventTile_keyRequestInfo_tooltip_contents p {
316+
text-align: auto;
317+
margin-left: 3px;
318+
margin-right: 3px;
319+
}
320+
321+
.mx_EventTile_keyRequestInfo_tooltip_contents p:first-child {
322+
margin-top: 0px;
323+
}
324+
325+
.mx_EventTile_keyRequestInfo_tooltip_contents p:last-child {
326+
margin-bottom: 0px;
327+
}
328+
301329
.mx_EventTile_12hr .mx_EventTile_e2eIcon {
302330
padding-left: 5px;
303331
}

0 commit comments

Comments
 (0)