Skip to content

Commit

Permalink
fix sarafi
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Apr 14, 2020
1 parent cb2e636 commit 833cb1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const LoadingRow = ({ cols }) => <Table.Row>
</Table.Cell>)}
</Table.Row>;

const style = { minHeight: '40px' };

export function DirectoryTable({
data = {},
renderRow,
Expand Down Expand Up @@ -77,7 +79,7 @@ export function DirectoryTable({
return <>
<Flex.Container direction='column'>
<Box>
<Box mb='x16' display='flex' flexDirection='column'>
<Box mb='x16' display='flex' flexDirection='column' style={style}>
<TextInput placeholder={searchPlaceholder} addon={<Icon name='magnifier' size='x20'/>} onChange={handleChange} value={text} />
</Box>
{channels && !channels.length
Expand Down
4 changes: 2 additions & 2 deletions app/ui/client/views/app/components/Directory/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const avatarBase = { baseUrl: '/avatar/' };
export function DirectoryPage() {
const t = useTranslation();

const defaultTab = useSetting('Accounts_Directory_DefaultView', 'channels');
const defaultTab = useSetting('Accounts_Directory_DefaultView');

const federationEnabled = useSetting('FEDERATION_Enabled');

Expand All @@ -30,7 +30,7 @@ export function DirectoryPage() {

return <Avatar.Context.Provider value={avatarBase}><Page>
<Page.Header title={t('Directory')} />
<Tabs>
<Tabs flexShrink={0} >
<Tabs.Item selected={tab === 'channels'} onClick={handleTabClick('channels')}>{t('Channels')}</Tabs.Item>
<Tabs.Item selected={tab === 'users'} onClick={handleTabClick('users')}>{t('Users')}</Tabs.Item>
{ federationEnabled && <Tabs.Item selected={tab === 'external'} onClick={handleTabClick('external')}>{t('External_Users')}</Tabs.Item> }
Expand Down

0 comments on commit 833cb1e

Please sign in to comment.