fix: MD editor table cannot have too many columns and cannot scroll horizontally#2845
fix: MD editor table cannot have too many columns and cannot scroll horizontally#2845shaohuzhang1 merged 1 commit intomainfrom
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| } | ||
| p { | ||
| padding: 0 !important; | ||
| } |
There was a problem hiding this comment.
The provided CSS appears to be incomplete and contains errors. Here are some corrections and additional optimizations:
.md-editor-preview {
padding: 0;
margin: 0;
font-size: inherit;
border: none; /* Remove unnecessary borders */
}Key Corrections/Improvements:
- Remove Unnecessary
tableBlock: The rule.md-editor-preview table {}is redundant because it can conflict with other styles elsewhere in the document. - Add Missing Closing Brace: Ensure that there are correct closing braces for all rules.
This corrected version of the CSS will properly format the preview text without disrupting layout or styling. If you intend for tables within the preview section to behave differently (e.g., not overflow), you may need to adjust specific table properties instead of setting display: block.
fix: MD editor table cannot have too many columns and cannot scroll horizontally