Skip to content

Commit

Permalink
fix: large spacing + padding issue in input box
Browse files Browse the repository at this point in the history
  • Loading branch information
siiddhantt committed Jun 25, 2024
1 parent a6ff606 commit 85c648d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/conversation/Conversation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export default function Conversation() {
placeholder={t('inputPlaceholder')}
contentEditable
onPaste={handlePaste}
className={`max-h-24 min-h-[3.8rem] w-full overflow-y-auto overflow-x-hidden whitespace-pre-wrap rounded-full bg-white py-2 pl-4 pr-9 text-base leading-10 opacity-100 focus:outline-none dark:bg-raisin-black dark:text-bright-gray`}
className={`inputbox-style max-h-24 w-full overflow-y-auto overflow-x-hidden whitespace-pre-wrap rounded-full bg-white pt-5 pb-[22px] text-base leading-tight opacity-100 focus:outline-none dark:bg-raisin-black dark:text-bright-gray`}
onKeyDown={(e) => {
if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault();
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -412,3 +412,8 @@ template {
.bottom-safe {
bottom: env(safe-area-inset-bottom, 0);
}

.inputbox-style[contenteditable] {
padding-left: 36px;
padding-right: 36px;
}

0 comments on commit 85c648d

Please sign in to comment.