Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⏺️ style: Better Markdown Lists #3777

Merged
merged 3 commits into from
Aug 25, 2024
Merged

⏺️ style: Better Markdown Lists #3777

merged 3 commits into from
Aug 25, 2024

Conversation

danny-avila
Copy link
Owner

@danny-avila danny-avila commented Aug 25, 2024

Summary

I implemented comprehensive improvements to the styling of markdown lists in the application. These changes enhance the visual hierarchy and readability of nested lists, ensuring a more consistent and user-friendly experience.

  • Refined the base styles for ordered and unordered lists in both .prose and .markdown classes, including proper indentation and spacing.
  • Implemented distinct styling for nested lists, using different list-style-types for each level (e.g., disc, circle, square for unordered lists; decimal, lower-alpha, lower-roman for ordered lists).
  • Adjusted margins and paddings to create a clear visual hierarchy in nested list structures.
  • Ensured proper marker colors for list items, improving contrast and readability.
  • Streamlined the CSS by removing redundant or overly specific selectors, resulting in more maintainable code.
  • Fixed issues with list item spacing and alignment, creating a more cohesive look across different list types and nesting levels.
  • Updated the styling for streaming results to properly handle lists, ensuring the loading indicator appears correctly at the end of list items.

These changes significantly improve the visual presentation of markdown content, particularly for complex, nested list structures. The new styles provide better differentiation between list levels and types, making it easier for users to parse and understand hierarchical information.

Before

image

After

image

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • Local unit tests pass with my changes

@danny-avila danny-avila merged commit 9bfe40b into main Aug 25, 2024
2 checks passed
@danny-avila danny-avila deleted the fix/markdown-lists branch August 25, 2024 20:33
kenshinsamue pushed a commit to intelequia/LibreChat that referenced this pull request Sep 17, 2024
* style: markdown lists

* style: markdown lists, second pass

* style: update nested list styles in style.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant