mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-09-13 14:22:25 +03:00
Minor usability improvements (#2405)
Some checks failed
Deploy to Netlify (dev) / Deploy to Netlify (push) Has been cancelled
Some checks failed
Deploy to Netlify (dev) / Deploy to Netlify (push) Has been cancelled
* usability improvements * revert change * requested change
This commit is contained in:
parent
13961d501f
commit
a41dee4a55
4 changed files with 11 additions and 6 deletions
|
@ -339,7 +339,7 @@ export function Toolbar() {
|
|||
<Box className={css.MarkdownBtnBox} shrink="No" grow="Yes" justifyContent="End">
|
||||
<TooltipProvider
|
||||
align="End"
|
||||
tooltip={<BtnTooltip text="Toggle Markdown" />}
|
||||
tooltip={<BtnTooltip text={isMarkdown ? 'Disable Markdown' : 'Enable Markdown'} />}
|
||||
delay={500}
|
||||
>
|
||||
{(triggerRef) => (
|
||||
|
|
|
@ -47,7 +47,12 @@ export function RoomPublish({ powerLevels }: RoomPublishProps) {
|
|||
gap="400"
|
||||
>
|
||||
<SettingTile
|
||||
title="Publish To Directory"
|
||||
title="Publish to Directory"
|
||||
description={
|
||||
room.isSpaceRoom()
|
||||
? 'List the space in the public directory to make it discoverable by others.'
|
||||
: 'List the room in the public directory to make it discoverable by others.'
|
||||
}
|
||||
after={
|
||||
<Box gap="200" alignItems="Center">
|
||||
{loading && <Spinner variant="Secondary" />}
|
||||
|
|
|
@ -34,7 +34,7 @@ import { RoomTopicViewer } from '../../components/room-topic-viewer';
|
|||
import { StateEvent } from '../../../types/matrix/room';
|
||||
import { useMatrixClient } from '../../hooks/useMatrixClient';
|
||||
import { useRoom } from '../../hooks/useRoom';
|
||||
import { useSetSetting, useSetting } from '../../state/hooks/settings';
|
||||
import { useSetting } from '../../state/hooks/settings';
|
||||
import { settingsAtom } from '../../state/settings';
|
||||
import { useSpaceOptionally } from '../../hooks/useSpace';
|
||||
import { getHomeSearchPath, getSpaceSearchPath, withSearchParam } from '../../pages/pathUtils';
|
||||
|
@ -260,7 +260,7 @@ export function RoomViewHeader() {
|
|||
? mxcUrlToHttp(mx, avatarMxc, useAuthentication, 96, 96, 'crop') ?? undefined
|
||||
: undefined;
|
||||
|
||||
const setPeopleDrawer = useSetSetting(settingsAtom, 'isPeopleDrawer');
|
||||
const [peopleDrawer, setPeopleDrawer] = useSetting(settingsAtom, 'isPeopleDrawer');
|
||||
|
||||
const handleSearchClick = () => {
|
||||
const searchParams: _SearchPathSearchParams = {
|
||||
|
@ -434,7 +434,7 @@ export function RoomViewHeader() {
|
|||
offset={4}
|
||||
tooltip={
|
||||
<Tooltip>
|
||||
<Text>Members</Text>
|
||||
<Text>{peopleDrawer ? 'Hide Members' : 'Show Members'}</Text>
|
||||
</Tooltip>
|
||||
}
|
||||
>
|
||||
|
|
|
@ -28,7 +28,7 @@ export function SettingsTab() {
|
|||
|
||||
return (
|
||||
<SidebarItem active={settings}>
|
||||
<SidebarItemTooltip tooltip={displayName}>
|
||||
<SidebarItemTooltip tooltip="User Settings">
|
||||
{(triggerRef) => (
|
||||
<SidebarAvatar as="button" ref={triggerRef} onClick={openSettings}>
|
||||
<UserAvatar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue