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

Change Codeblock tab size #190

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

stephannv
Copy link
Contributor

Change codeblock tab size to 2. I think it is a good default value. I couldn't find a tailwind class to change tabsize, so I added an inline style to Codeblock.
Before:
Screenshot 2024-11-11 at 16 48 11

After:
Screenshot 2024-11-11 at 16 48 04

@stephannv stephannv self-assigned this Nov 11, 2024
@stephannv stephannv force-pushed the change_codeblock_tab_size branch from 1443d43 to 970acec Compare November 11, 2024 19:50
@stephannv stephannv requested a review from cirdes November 11, 2024 19:50
@@ -34,6 +34,7 @@ def view_template

def default_attrs
{
style: {tab_size: 2},
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️❤️

@stephannv stephannv merged commit 468d580 into ruby-ui:main Nov 11, 2024
2 checks passed
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.

2 participants