Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ui/src/styles/md-editor.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
.md-editor {
font-weight: 400;
}

.md-editor-preview {
padding: 0;
margin: 0;
font-size: inherit;
table{
display: block;
}
p {
padding: 0 !important;
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. Remove Unnecessary table Block: The rule .md-editor-preview table {} is redundant because it can conflict with other styles elsewhere in the document.
  2. 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.

Expand Down