Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsrobot committed Jan 12, 2024
1 parent 5eb9ec5 commit 3bf98e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/components/channel-replybox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@ export default function ChannelReplybox(props) {
disabled={!canMessage}
value={text}
placeholder='Write something...'
onKeyUp={(e) => {
onKeyDown={(e) => {
if (e.key === "Enter") {
e.preventDefault();
if (e.shiftKey) {
setRows((v) => Math.min(v + 1, 8));
} else {
e.preventDefault();
handleCreateMessage();
}
}
Expand Down
5 changes: 4 additions & 1 deletion app/components/community-menu.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Text, Flex, Box, IconButton, Dialog, Strong, Avatar, Popover, ContextMenu, Button, TextField } from '@radix-ui/themes';
import { PlusIcon, GearIcon, ChevronDownIcon, ChevronRightIcon } from '@radix-ui/react-icons';
import { useLoaderData, Link, NavLink, useSubmit } from "@remix-run/react";
import { useLoaderData, Link, NavLink, useSubmit, PrefetchPageLinks } from "@remix-run/react";
import * as Collapsible from '@radix-ui/react-collapsible';
import { useCallback, useState } from 'react';
import CreateChannelDialog from './create-channel-dialog.jsx';
Expand Down Expand Up @@ -86,6 +86,9 @@ function TopChannels(props) {
<ConfirmDeleteChannelDialog channel={channel} community={community} closeDialog={() => setDeleteChannelOpen(false)} />
</Dialog.Root>
</>
<>
{!!channels && channels.map((c) => <PrefetchPageLinks page={`/c/${community.handle}/${c.handle}`} />)}
</>
<Flex direction="column" gap="2" p="0">
{!!channels && channels.map((channel) => {
const ur = channel.unread_count > 0;
Expand Down
1 change: 1 addition & 0 deletions app/components/styles.channel-message.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
}

.wk-emojis {
z-index: 100;
border: 1px solid var(--gray-a3);
background-color: var(--mauve-a3);
-webkit-backdrop-filter: blur(8px);
Expand Down

0 comments on commit 3bf98e1

Please sign in to comment.