Skip to content

Commit

Permalink
chore: adjust styles
Browse files Browse the repository at this point in the history
  • Loading branch information
wxharry committed Oct 24, 2023
1 parent 43f1ee1 commit be37f28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const CollectionContent: React.FC<Index> = ({ repoNames, currentRepo }) => {
};

return (
<Layout style={{ padding: '24px 0', background: colorBgContainer }}>
<Layout style={{ padding: '18px 0', background: colorBgContainer }}>
<Sider style={{ background: colorBgContainer }} width={200}>
<Menu
mode="inline"
Expand All @@ -46,7 +46,7 @@ const CollectionContent: React.FC<Index> = ({ repoNames, currentRepo }) => {
onClick={({ key }) => handleMenuClick(key)} //点击切换选中的repo
/>
</Sider>
<Content style={{ padding: '0 24px', minHeight: 280 }}>
<Content style={{ paddingLeft: '24px', minHeight: 280 }}>
<CollectionDashboard repoNames={repoNames} currentRepo={selectedRepo} />
</Content>
</Layout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const CollectionManageModal = () => {
const [isEdit, setIsEdit] = useState<boolean>();

const editTab = (
<div style={{ display: 'flex', gap: '10px' }}>
<div style={{ display: 'flex', gap: '10px', marginRight: '15px' }}>
<Button
onClick={() => {
setIsClick(true);
Expand Down Expand Up @@ -198,14 +198,13 @@ export const CollectionManageModal = () => {
setSelectedCollection(undefined);
}}
footer={null}
width={'100%'}
width={'95%'}
style={{
top: '0px',
bottom: '0px',
height: '100vh',
maxWidth: 'unset',
top: '10px',
bottom: '10px',
height: '95vh',
}}
bodyStyle={{ height: 'calc(100vh - 40px)', overflow: 'auto' }} // 40px is the sum of top and bottom padding
bodyStyle={{ height: 'calc(95vh - 30px)', overflow: 'auto' }} // 40px is the sum of top and bottom padding
>
<Tabs
hideAdd
Expand All @@ -215,6 +214,7 @@ export const CollectionManageModal = () => {
onEdit={onEdit}
items={items}
tabBarExtraContent={editTab}
style={{ margin: '0px 24px' }}
/>
</Modal>
{isClick && (
Expand Down

0 comments on commit be37f28

Please sign in to comment.