client: fix ui

This commit is contained in:
fantasticit 2022-08-16 10:44:51 +08:00
parent 058d0e6e48
commit 0206d9a670
7 changed files with 12 additions and 9 deletions

View File

@ -79,7 +79,7 @@ export const DocumentActions: React.FC<IProps> = ({
visible={popoverVisible}
onVisibleChange={wrapOnVisibleChange}
content={
<Dropdown.Menu style={{ width: 112 }}>
<Dropdown.Menu style={{ minWidth: 112 }}>
{showCreateDocument && (
<Dropdown.Item onClick={create}>
<Text>

View File

@ -19,6 +19,7 @@ export const EditUser: React.FC<IProps> = ({ userWithAuth, updateUser, children
return (
<Popconfirm
showArrow
position="bottomRight"
zIndex={1070}
title={`修改用户${userWithAuth && userWithAuth.user.name}权限`}
content={

View File

@ -94,6 +94,7 @@ export const Members: React.FC<IProps> = ({ id, hook, descriptions }) => {
</EditUser>
<Popconfirm
showArrow
position="bottomRight"
zIndex={1070}
title="确认删除该成员?"
onConfirm={() => deleteUser({ userName: data.user.name, userAuth: data.auth.auth })}

View File

@ -1,8 +1,6 @@
import { TabPane, Tabs } from '@douyinfe/semi-ui';
import { IOrganization, IWiki } from '@think/domains';
import { IOrganization } from '@think/domains';
import { Seo } from 'components/seo';
import { WikiTocsManager } from 'components/wiki/tocs/manager';
import { useWikiDetail } from 'data/wiki';
import React from 'react';
import { Base } from './base';
@ -22,8 +20,6 @@ const TitleMap = {
};
export const OrganizationSetting: React.FC<IProps> = ({ organizationId, tab, onNavigate }) => {
// const { data, update } = useWikiDetail(wikiId);
return (
<>
<Seo title={TitleMap[tab]} />

View File

@ -73,7 +73,12 @@ export const TemplateEditor: React.FC<IProps> = ({ templateId }) => {
<Tooltip position="bottom" content={isPublic ? '公开模板' : '个人模板'}>
<Switch checked={isPublic} onChange={(v) => updateTemplate({ isPublic: v })}></Switch>
</Tooltip>
<Popconfirm title="删除模板" content="模板删除后不可恢复,谨慎操作!" onConfirm={handleDelte}>
<Popconfirm
style={{ width: 320 }}
title="删除模板"
content="模板删除后不可恢复,谨慎操作!"
onConfirm={handleDelte}
>
<Button type="danger"></Button>
</Popconfirm>
<Theme />

View File

@ -25,7 +25,7 @@ export const Theme = () => {
trigger="click"
showTick
render={
<Dropdown.Menu>
<Dropdown.Menu style={{ width: 100 }}>
<Dropdown.Item active={userPrefer === ThemeEnum.light} onClick={setLight}>
<IconSun />

View File

@ -33,7 +33,7 @@ const Page: NextPage = () => {
return (
<SingleColumnLayout>
<Seo title="模板" />
<Seo key={tab} title="模板" />
<div className="container">
<div className={styles.titleWrap}>
<Title heading={3} style={{ margin: '8px 0' }}>