Skip to content

Commit ee34ca8

Browse files
authored
Polish channel modal forms (#1000)
1 parent 19656ff commit ee34ca8

11 files changed

Lines changed: 582 additions & 348 deletions

File tree

desktop/src/features/channels/ui/ChannelBrowserDialog.tsx

Lines changed: 316 additions & 222 deletions
Large diffs are not rendered by default.

desktop/src/features/messages/lib/useRichTextEditor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,12 @@ export function useRichTextEditor({
321321
],
322322
editorProps: {
323323
attributes: {
324+
autocapitalize: "none",
325+
autocorrect: "off",
324326
class:
325327
"min-h-0 resize-none overflow-y-hidden border-0 bg-transparent px-0 py-0 text-sm leading-6 md:leading-6 shadow-none focus-visible:ring-0 caret-foreground outline-hidden prose-sm max-w-none",
326328
"data-testid": "message-input",
329+
spellcheck: "false",
327330
},
328331
// ArrowUp in an empty composer → edit your last message (Slack
329332
// parity). Handled here in ProseMirror's own DOM `keydown` hook —

desktop/src/features/search/ui/ChannelFindBar.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export function ChannelFindBar({
6262
<div className="relative flex min-w-0 flex-1 items-center">
6363
<input
6464
ref={inputRef}
65+
autoCapitalize="none"
66+
autoCorrect="off"
6567
className={cn(
6668
"h-7 w-full rounded-md border border-input bg-transparent px-2 pr-20 text-sm",
6769
"placeholder:text-muted-foreground",
@@ -70,6 +72,7 @@ export function ChannelFindBar({
7072
onChange={(event) => onQueryChange(event.target.value)}
7173
onKeyDown={handleKeyDown}
7274
placeholder="Find in channel"
75+
spellCheck={false}
7376
type="text"
7477
value={query}
7578
/>

0 commit comments

Comments
 (0)