Skip to content

Commit

Permalink
exported height and max height properties for prompt input's style
Browse files Browse the repository at this point in the history
  • Loading branch information
somebodyawesome-dev authored and salmenus committed Jul 9, 2024
1 parent 060193b commit 1e304da
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/css/themes/src/common/components/Composer.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

> textarea {
height:100%;
max-height: 80px; /* Set maximum height the textarea can expand to */
max-height: var(--nlux-prmInp-mxhg); /* Set maximum height the textarea can expand to */
field-sizing: content;

font-family: var(--nlux-prmInp--ftFm), sans-serif;
Expand Down
3 changes: 2 additions & 1 deletion packages/css/themes/src/common/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
--nlux-prmInp--brdrWd: var(--nlux-PromptInput--BorderWidth);
--nlux-prmInp--brdrRd: var(--nlux-PromptInput--BorderRadius);
--nlux-prmInp-fcs-otln--wd: var(--nlux-PromptInput-Focus-Outline--Width, 6px);

--nlux-prmInp-mxhg: var(--nlux-PromptInput-Max-Height, 80px);
--nlux-prmInp-hg: var(--nlux-PromptInput-Height, 60px);
/** Conversation starters */
--nlux-cvStrt--pdng: var(--nlux-ConversationStarter--Padding, 0 10px);
--nlux-cvStrt--brdrRd: var(--nlux-ConversationStarter--BorderRadius);
Expand Down
2 changes: 1 addition & 1 deletion packages/css/themes/src/common/structure.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}

> .nlux-composer-container {
min-height: 60px;
min-height: var(--nlux-prmInp-hg);
width: 100%;
display: flex;
flex-direction: row;
Expand Down
2 changes: 2 additions & 0 deletions packages/css/themes/src/dev/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
--nlux-PromptInput--BorderWidth: 5px;
--nlux-PromptInput--BorderRadius: 8px;
--nlux-PromptInput-Focus-Outline--Width: 5px;
--nlux-PromptInput-Max-Height: 80px;
--nlux-PromptInput-Height: 60px;

/** 👇 Submit button */
--nlux-SubmitButton--Width: 65px;
Expand Down
4 changes: 3 additions & 1 deletion packages/css/themes/src/luna/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
--nlux-PromptInput--BorderWidth: var(--nlux-luna--BorderWidth);
--nlux-PromptInput--BorderRadius: var(--nlux-luna--BorderRadius);
--nlux-PromptInput-Focus-Outline--Width: var(--nlux-luna--BorderWidth);

--nlux-PromptInput-Max-Height: 80px;
--nlux-PromptInput-Height: 60px;

/** Conversation starters */
--nlux-ConversationStarter--Padding: 0 10px;
--nlux-ConversationStarter--BorderRadius: var(--nlux-luna--BorderRadius);
Expand Down
2 changes: 2 additions & 0 deletions packages/css/themes/src/nova/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
--nlux-PromptInput--BorderWidth: 0;
--nlux-PromptInput--BorderRadius: 12px;
--nlux-PromptInput-Focus-Outline--Width: 2px;
--nlux-PromptInput-Max-Height: 80px;
--nlux-PromptInput-Height: 60px;

/** Conversation starters */
--nlux-ConversationStarter--Padding: 0 10px;
Expand Down
2 changes: 2 additions & 0 deletions packages/css/themes/src/openai/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
--nlux-PromptInput--BorderWidth: 0;
--nlux-PromptInput--BorderRadius: 12px;
--nlux-PromptInput-Focus-Outline--Width: 2px;
--nlux-PromptInput-Max-Height: 80px;
--nlux-PromptInput-Height: 60px;

/** Conversation starters */
--nlux-ConversationStarter--Padding: 0 10px;
Expand Down

0 comments on commit 1e304da

Please sign in to comment.