Skip to content

Commit

Permalink
Layout fix for text boxes not resizing properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Jul 21, 2024
1 parent e6246b4 commit 397f7f6
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions playground/src/app/info_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,13 @@ pub fn InfoGraph(diagram_only: ReadSignal<bool>) -> impl IntoView {
mb-10 \
lg:mb-0 \
\
w-dvw \
lg:w-[40dvw] \
h-[50dvh] \
lg:h-[78dvh] \
\
lg:basis-2/5 \
lg:grow-0 \
lg:grow \
"
}
};
Expand Down Expand Up @@ -300,10 +301,10 @@ pub fn InfoGraph(diagram_only: ReadSignal<bool>) -> impl IntoView {

// tab content
<div class="\
hidden \
peer-checked/tab_info_graph_yml:block \
\
h-full \
invisible \
h-0 \
peer-checked/tab_info_graph_yml:visible \
peer-checked/tab_info_graph_yml:h-full \
"
>
<TextEditor
Expand Down Expand Up @@ -355,10 +356,10 @@ pub fn InfoGraph(diagram_only: ReadSignal<bool>) -> impl IntoView {

// tab content
<div class="\
hidden \
peer-checked/tab_info_graph_dot:block \
\
h-full \
invisible \
h-0 \
peer-checked/tab_info_graph_dot:visible \
peer-checked/tab_info_graph_dot:h-full \
"
>
<textarea
Expand Down Expand Up @@ -401,6 +402,7 @@ pub fn InfoGraph(diagram_only: ReadSignal<bool>) -> impl IntoView {
grow \
lg:basis-3/5 \
lg:grow \
lg:shrink \
"
}
}}
Expand All @@ -424,8 +426,10 @@ pub fn InfoGraph(diagram_only: ReadSignal<bool>) -> impl IntoView {

<div
class="\
hidden \
peer-checked/tab_dot_svg:block \
invisible \
h-0 \
peer-checked/tab_dot_svg:visible \
peer-checked/tab_dot_svg:h-auto \
w-dvw \
lg:w-auto \
max-w-dvw \
Expand All @@ -440,8 +444,10 @@ pub fn InfoGraph(diagram_only: ReadSignal<bool>) -> impl IntoView {

<div
class="\
hidden \
peer-checked/tab_flex_diag:block \
invisible \
h-0 \
peer-checked/tab_flex_diag:visible \
peer-checked/tab_flex_diag:h-auto \
w-dvw \
lg:w-auto \
max-w-dvw \
Expand Down

0 comments on commit 397f7f6

Please sign in to comment.