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

Formatting is off #136

Open
klautcomputing opened this issue Aug 6, 2024 · 3 comments
Open

Formatting is off #136

klautcomputing opened this issue Aug 6, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@klautcomputing
Copy link

@bram209 as discussed on discord here is the weird formatting:

image

                <div class="flex gap-1 justify-center items-center w-full">
                    {result_string} <Show when=is_finished>
                        <div>{conclusion}</div>
                    </Show>
                </div>

You can find the whole file here: https://github.com/hiveboardgame/hive/blob/main/apis/src/components/molecules/game_row.rs

Thanks
leex

@bram209 bram209 added the bug Something isn't working label Aug 9, 2024
@bram209 bram209 closed this as completed Sep 6, 2024
@bram209 bram209 reopened this Sep 6, 2024
@aldehydkrotonowy
Copy link

I don't know if this is related somehow but I observed that commenting out line
macro_names = ["leptos::view, view"] # Macro names which will be formatted
in leptosfmt.toml file ironically fixes formatting inside !view macro.

@bram209
Copy link
Owner

bram209 commented Sep 28, 2024

I don't know if this is related somehow but I observed that commenting out line macro_names = ["leptos::view, view"] # Macro names which will be formatted in leptosfmt.toml file ironically fixes formatting inside !view macro.

Not sure where you get that line from, but macro_names should be ["leptos::view", "view"] and not ["leptos::view, view"].

@aldehydkrotonowy
Copy link

Ah, I had old version which I copied some time ago, Probably I wouldn't notice this, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants