diff --git a/src/components/navigation/left/ServerListSidebar.tsx b/src/components/navigation/left/ServerListSidebar.tsx index d6429275..3ba5a986 100644 --- a/src/components/navigation/left/ServerListSidebar.tsx +++ b/src/components/navigation/left/ServerListSidebar.tsx @@ -100,8 +100,15 @@ const ServerEntry = styled.div<{ active: boolean, home?: boolean }>` border-start-start-radius: 50%; border-end-start-radius: 50%; + &:active { + transform: translateY(1px); + } + ${ props => props.active && css` background: var(--sidebar-active); + &:active { + transform: none; + } ` } } diff --git a/src/pages/channels/actions/HeaderActions.tsx b/src/pages/channels/actions/HeaderActions.tsx index e0bfcdd0..881ea0dd 100644 --- a/src/pages/channels/actions/HeaderActions.tsx +++ b/src/pages/channels/actions/HeaderActions.tsx @@ -7,7 +7,8 @@ import { isTouchscreenDevice } from "../../../lib/isTouchscreenDevice"; import UpdateIndicator from "../../../components/common/UpdateIndicator"; import { useIntermediate } from "../../../context/intermediate/Intermediate"; import { VoiceContext, VoiceOperationsContext, VoiceStatus } from "../../../context/Voice"; -import { UserPlus, Cog, Sidebar as SidebarIcon, PhoneCall, PhoneOutgoing } from "@styled-icons/boxicons-regular"; +import { UserPlus, Cog, PhoneCall, PhoneOutgoing } from "@styled-icons/boxicons-solid"; +import { Sidebar as SidebarIcon } from "@styled-icons/boxicons-regular"; export default function HeaderActions({ channel, toggleSidebar }: ChannelHeaderProps) { const { openScreen } = useIntermediate(); @@ -29,10 +30,10 @@ export default function HeaderActions({ channel, toggleSidebar }: ChannelHeaderP } } })}> - + history.push(`/channel/${channel._id}/settings`)}> - + ) } @@ -66,14 +67,14 @@ function VoiceActions({ channel }: Pick) { disconnect(); connect(channel._id); }}> - + ) } } else { return ( - + ) } diff --git a/src/pages/friends/Friend.module.scss b/src/pages/friends/Friend.module.scss index d7129674..c455ef87 100644 --- a/src/pages/friends/Friend.module.scss +++ b/src/pages/friends/Friend.module.scss @@ -1,3 +1,9 @@ +.actions { + display: flex; + align-items: center; + gap: 20px; +} + .list { padding: 0 10px 10px 10px; user-select: none; diff --git a/src/pages/friends/Friends.tsx b/src/pages/friends/Friends.tsx index b713eddc..444afadf 100644 --- a/src/pages/friends/Friends.tsx +++ b/src/pages/friends/Friends.tsx @@ -10,8 +10,8 @@ import { User, Users } from "revolt.js/dist/api/objects"; import UserIcon from "../../components/common/user/UserIcon"; import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice"; import { useIntermediate } from "../../context/intermediate/Intermediate"; -import { ChevronDown, ChevronRight } from "@styled-icons/boxicons-regular"; -import { UserDetail, Conversation, UserPlus } from "@styled-icons/boxicons-solid"; +import { ChevronDown, ChevronRight, ListPlus } from "@styled-icons/boxicons-regular"; +import { UserDetail, MessageAdd, UserPlus } from "@styled-icons/boxicons-solid"; import { TextReact } from "../../lib/i18n"; import { Children } from "../../types/Preact"; @@ -53,24 +53,32 @@ export default function Friends() {
- - openScreen({ id: 'special_input', type: 'create_group' })}> - - - - - openScreen({ id: 'special_input', type: 'add_friend' })}> - - - - {/* -
- - - - - - */} +
+ {/* + openScreen({ id: 'special_input', type: 'create_group' })}> + + + +
*/} + + openScreen({ id: 'special_input', type: 'create_group' })}> + + + + + openScreen({ id: 'special_input', type: 'add_friend' })}> + + + + {/* +
+ + + + + + */} +
{isEmpty && (