Skip to content

Commit

Permalink
fix: accordion text alignment (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick authored Aug 30, 2024
1 parent bd323f8 commit e2cfacd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/ui/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const AccordionTrigger = React.forwardRef<
<AccordionPrimitive.Trigger
ref={ref}
className={cn(
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180 text-start",
className,
)}
{...props}
Expand Down
33 changes: 33 additions & 0 deletions marimo/_smoke_tests/bugs/2173-accordion.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "marimo",
# ]
# ///

import marimo

__generated_with = "0.8.7"
app = marimo.App(width="medium")


@app.cell
def __(mo):
mo.accordion(
{
"""**e)** Diria que o trabalho, a educação e a idade explicam muita da variação no sono? Que outros fatores poderiam afetar o tempo passado a dormir? Estarão esses fatores provavelmente correlacionados com o trabalho?""": """
- Content
"""
}
)
return


@app.cell
def __():
import marimo as mo
return mo,


if __name__ == "__main__":
app.run()

0 comments on commit e2cfacd

Please sign in to comment.