This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +21
-13
lines changed
wysiwyg_composer/components Expand file tree Collapse file tree 4 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 57
57
"dependencies" : {
58
58
"@babel/runtime" : " ^7.12.5" ,
59
59
"@matrix-org/analytics-events" : " ^0.4.0" ,
60
- "@matrix-org/matrix-wysiwyg" : " ^0.20 .0" ,
60
+ "@matrix-org/matrix-wysiwyg" : " ^0.22 .0" ,
61
61
"@matrix-org/react-sdk-module-api" : " ^0.0.3" ,
62
62
"@sentry/browser" : " ^7.0.0" ,
63
63
"@sentry/tracing" : " ^7.0.0" ,
Original file line number Diff line number Diff line change @@ -639,8 +639,8 @@ $left-gutter: 64px;
639
639
list-style-type : disc;
640
640
}
641
641
642
- /* Remove top and bottom margin for better consecutive list display */
643
- > :is (ol, ul) {
642
+ /* Remove top and bottom margin for better display in rich text editor output */
643
+ :is (p, ol, ul) {
644
644
margin-top : 0 ;
645
645
margin-bottom : 0 ;
646
646
}
Original file line number Diff line number Diff line change @@ -37,6 +37,20 @@ limitations under the License.
37
37
user-select : all;
38
38
}
39
39
40
+ // we always have a <br/> tag at the end of the html, we need it to be present at first then hide it as soon as
41
+ // we have any other elements
42
+ br:not (:only-child ) {
43
+ display : none;
44
+ }
45
+
46
+ p {
47
+ margin-top : 0 ;
48
+ margin-bottom : 0 ;
49
+ // this may seem redundant, but we need to handle zero content formatting tags, which occur when we split a
50
+ // formatting tag into paragraphs
51
+ min-height : $font-22px ;
52
+ }
53
+
40
54
ul ,
41
55
ol {
42
56
margin-top : 0 ;
@@ -56,12 +70,6 @@ limitations under the License.
56
70
margin-inline-end : 0 ;
57
71
}
58
72
59
- // model output always includes a linebreak but we do not want the user
60
- // to see it when writing input in lists
61
- :is (ol, ul, pre, blockquote) + br:last-of-type {
62
- display : none;
63
- }
64
-
65
73
> pre {
66
74
font-size : $font-15px ;
67
75
line-height : $font-24px ;
Original file line number Diff line number Diff line change 1589
1589
resolved "https://registry.yarnpkg.com/@matrix-org/matrix-sdk-crypto-js/-/matrix-sdk-crypto-js-0.1.0-alpha.2.tgz#a09d0fea858e817da971a3c9f904632ef7b49eb6"
1590
1590
integrity sha512-oVkBCh9YP7H9i4gAoQbZzswniczfo/aIptNa4dxRi4Ff9lSvUCFv6Hvzi7C+90c0/PWZLXjIDTIAWZYmwyd2fA==
1591
1591
1592
- " @matrix-org/matrix-wysiwyg@^0.20 .0 " :
1593
- version "0.20 .0"
1594
- resolved "https://registry.yarnpkg.com/@matrix-org/matrix-wysiwyg/-/matrix-wysiwyg-0.20 .0.tgz#6193f790b031eaa96e944b647fe2b27018639d57 "
1595
- integrity sha512-9VqzyccwizglssShi/M+tCxdZDgzsecH4WjlS0HC5KkLmljIxxlHFstf/D3C/G4ZfRodFUh6wUvd+oQI/ScPpw ==
1592
+ " @matrix-org/matrix-wysiwyg@^0.22 .0 " :
1593
+ version "0.22 .0"
1594
+ resolved "https://registry.yarnpkg.com/@matrix-org/matrix-wysiwyg/-/matrix-wysiwyg-0.22 .0.tgz#53f1e80d9ae7be0940e0ca905a3952804b029b29 "
1595
+ integrity sha512-3b5jGMI56zcqZ2PktrSPMAbzfWmkdupuzcLeemWQ0fT8QuiG4dA72NUxdDyarlz+1eQ+Qm4fu9j/zsPlvNpy8g ==
1596
1596
1597
1597
" @matrix-org/olm@https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.14.tgz " :
1598
1598
version "3.2.14"
You can’t perform that action at this time.
0 commit comments