This repository was archived by the owner on Sep 11, 2024. It is now read-only.
-
- Notifications
You must be signed in to change notification settings - Fork 816
IRC ui layout #4531
Merged
JorikSchellekens merged 31 commits into matrix-org:develop from JorikSchellekens:joriks/irc-ui May 19, 2020
Merged
IRC ui layout #4531
Changes from all commits
Commits
Show all changes
31 commits Select commit Hold shift + click to select a range
a38d5eb
add useIRCLayout setting
JorikSchellekens e0c89f6
Add switch between layout classes
JorikSchellekens c1e740a
Break out group layout settings
JorikSchellekens 10c8d25
Create irc layout
JorikSchellekens 37e8dc0
Include new css files
JorikSchellekens 6c3e316
Reduce padding
JorikSchellekens 54d211a
Index file name changes
JorikSchellekens 67249e1
Fix hover
JorikSchellekens 027826c
Replies have the same layout as messages
JorikSchellekens 0af265b
Fix replies
JorikSchellekens 07c2d0c
Composer reply previews have group layout
JorikSchellekens 5568e64
Fix encryption badge layout
JorikSchellekens 771ae5e
Fix encryption badge layouts and replies.
JorikSchellekens 5a0fdb3
Remove unused setting
JorikSchellekens bc5fc57
Lint
JorikSchellekens ac95172
tighter layout
JorikSchellekens 9b7c63a
Duplicated names
JorikSchellekens 8239666
Implement nitpicks
JorikSchellekens fef4d88
lint
JorikSchellekens 5029c3f
Implement IRC draggable display name width
JorikSchellekens 3f04f51
Implement more nitpicks
JorikSchellekens 312b616
fix i18n
JorikSchellekens 5c2abcf
Show username on continuations
JorikSchellekens 17f535e
Fix review problems
JorikSchellekens 5380e76
lint
JorikSchellekens 4deeef5
Remove ability to remove avatars
JorikSchellekens bba6b2c
Appease i18n
JorikSchellekens 7bb7f30
missed one
JorikSchellekens 286828b
Disable irc mode in notifiactions panel
JorikSchellekens 2e32519
Merge remote-tracking branch 'nv/develop' into joriks/irc-ui
JorikSchellekens 323d076
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
JorikSchellekens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
/* | ||
Copyright 2015, 2016 OpenMarket Ltd | ||
Copyright 2020 The Matrix.org Foundation C.I.C. | ||
| ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
| ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
| ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
| ||
$left-gutter: 65px; | ||
| ||
.mx_GroupLayout { | ||
| ||
.mx_EventTile { | ||
> .mx_SenderProfile { | ||
line-height: $font-17px; | ||
padding-left: $left-gutter; | ||
} | ||
| ||
> .mx_EventTile_line { | ||
padding-left: $left-gutter; | ||
} | ||
| ||
> .mx_EventTile_avatar { | ||
position: absolute; | ||
} | ||
| ||
.mx_MessageTimestamp { | ||
visibility: hidden; | ||
position: absolute; | ||
width: 46px; /* 8 + 30 (avatar) + 8 */ | ||
} | ||
| ||
.mx_EventTile_line, .mx_EventTile_reply { | ||
padding-top: 3px; | ||
padding-bottom: 3px; | ||
line-height: $font-22px; | ||
} | ||
} | ||
| ||
.mx_EventTile_info .mx_EventTile_line { | ||
padding-left: calc($left-gutter + 18px); | ||
} | ||
} | ||
| ||
/* Compact layout overrides */ | ||
| ||
.mx_MatrixChat_useCompactLayout { | ||
.mx_EventTile { | ||
padding-top: 4px; | ||
} | ||
| ||
.mx_EventTile.mx_EventTile_info { | ||
// same as the padding for non-compact .mx_EventTile.mx_EventTile_info | ||
padding-top: 0px; | ||
font-size: $font-13px; | ||
.mx_EventTile_line, .mx_EventTile_reply { | ||
line-height: $font-20px; | ||
} | ||
.mx_EventTile_avatar { | ||
top: 4px; | ||
} | ||
} | ||
| ||
.mx_EventTile .mx_SenderProfile { | ||
font-size: $font-13px; | ||
} | ||
| ||
.mx_EventTile.mx_EventTile_emote { | ||
// add a bit more space for emotes so that avatars don't collide | ||
padding-top: 8px; | ||
.mx_EventTile_avatar { | ||
top: 2px; | ||
} | ||
.mx_EventTile_line, .mx_EventTile_reply { | ||
padding-top: 0px; | ||
padding-bottom: 1px; | ||
} | ||
} | ||
| ||
.mx_EventTile.mx_EventTile_emote.mx_EventTile_continuation { | ||
padding-top: 0; | ||
.mx_EventTile_line, .mx_EventTile_reply { | ||
padding-top: 0px; | ||
padding-bottom: 0px; | ||
} | ||
} | ||
| ||
.mx_EventTile_line, .mx_EventTile_reply { | ||
padding-top: 0px; | ||
padding-bottom: 0px; | ||
} | ||
| ||
.mx_EventTile_avatar { | ||
top: 2px; | ||
} | ||
| ||
.mx_EventTile_e2eIcon { | ||
top: 3px; | ||
} | ||
| ||
.mx_EventTile_readAvatars { | ||
top: 27px; | ||
} | ||
| ||
.mx_EventTile_continuation .mx_EventTile_readAvatars, | ||
.mx_EventTile_emote .mx_EventTile_readAvatars { | ||
top: 5px; | ||
} | ||
| ||
.mx_EventTile_info .mx_EventTile_readAvatars { | ||
top: 4px; | ||
} | ||
| ||
.mx_RoomView_MessageList h2 { | ||
margin-top: 6px; | ||
} | ||
| ||
.mx_EventTile_content .markdown-body { | ||
p, ul, ol, dl, blockquote, pre, table { | ||
margin-bottom: 4px; // 1/4 of the non-compact margin-bottom | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.