Skip to content

Commit cfb204f

Browse files
committed
Fix comment form to work properly on translation keys
1 parent 0c13e9b commit cfb204f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

viewers/snippet/src/components/comment-sidebar/edit-comment-form.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ export const EditCommentForm = ({
4848
className="border-border-default bg-bg-input text-fg-primary focus:border-accent focus:ring-accent w-full rounded-md border px-3 py-2 text-sm focus:outline-none focus:ring-1"
4949
rows={3}
5050
/>
51-
<div className="flex space-x-2">
51+
<div className="flex flex-wrap gap-2">
5252
<button
5353
onClick={handleSaveClick}
54-
className="bg-accent text-fg-on-accent hover:bg-accent-hover rounded-md px-3 py-1 text-sm"
54+
className="bg-accent text-fg-on-accent hover:bg-accent-hover whitespace-nowrap rounded-md px-3 py-1 text-sm"
5555
>
5656
{translate('comments.save')}
5757
</button>
5858
<button
5959
onClick={handleCancelClick}
60-
className="bg-interactive-hover text-fg-secondary hover:bg-border-default rounded-md px-3 py-1 text-sm"
60+
className="bg-interactive-hover text-fg-secondary hover:bg-border-default whitespace-nowrap rounded-md px-3 py-1 text-sm"
6161
>
6262
{translate('comments.cancel')}
6363
</button>

0 commit comments

Comments
 (0)