This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 827
Fix spacing problem of paragraphs around lists #10305
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
39ca0e3
Add margin-top to paragraph below ul or ol
luixxiul b96df96
Add margin to the list on compact modern layout
luixxiul 613040f
Sort style blocks
luixxiul 2525350
Ensure the same value is applied to both top and bottom margin
luixxiul d9ebe6e
Edit comments
luixxiul 0578f2c
Add a test - Send lists with paragraphs as a message
luixxiul 2e8156a
Check block margin on modern (compact) layout
luixxiul b34692f
Check block margin on IRC layout
luixxiul c4d13ef
Check block margin on bubble layout
luixxiul 951a210
Use functions
luixxiul 09f5cfd
Add percySnapshotElement
luixxiul dbe57d6
Edit a comment
luixxiul 96be6f7
Merge branch 'develop' into fix-margin-list
luixxiul 934e752
Update cypress/e2e/timeline/timeline.spec.ts
luixxiul 7ac5c6c
Merge branch 'develop' into fix-margin-list
luixxiul 98adc11
Revert SCSS nesting
luixxiul 3aef940
Merge the functions
luixxiul 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 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 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 |
---|---|---|
|
@@ -648,6 +648,11 @@ $left-gutter: 64px; | |
margin-top: 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I don't really know why we need a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me nether. |
||
margin-bottom: 0; | ||
} | ||
|
||
/* Paragraph below ul or ol */ | ||
:is(ul, ol) + p { | ||
margin-block: $spacing-16; | ||
} | ||
} | ||
} | ||
|
||
|
@@ -1308,6 +1313,11 @@ $left-gutter: 64px; | |
table { | ||
margin-bottom: $spacing-4; /* 1/4 of the non-compact margin-bottom */ | ||
} | ||
|
||
/* Apply to paragraph below ul or ol */ | ||
:is(ul, ol) + p { | ||
margin-block: $spacing-4; | ||
} | ||
} | ||
} | ||
|
||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If ul and ol margin is in fact not expected here, this needs to be replaced as well. https://github.com/matrix-org/matrix-react-sdk/pull/10305/files#r1127766737