Skip to content

Commit 7204a5d

Browse files
author
xwj02155382
committed
fix: add datasource select sortable ...
1 parent 4f783e4 commit 7204a5d

File tree

18 files changed

+2708
-155
lines changed

18 files changed

+2708
-155
lines changed

packages/studio-query/src/app/content/header.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useRef, useState, Suspense } from 'react';
22
import { InsertRowAboveOutlined, OrderedListOutlined } from '@ant-design/icons';
3-
import { Segmented, Space, Flex } from 'antd';
3+
import { Segmented, Space, Flex, theme } from 'antd';
44
import { IStudioQueryProps, localStorageVars } from '../context';
55
import { useContext } from '../context';
66
import { Utils } from '@graphscope/studio-components';
@@ -20,6 +20,8 @@ const options = [
2020
{ icon: <OrderedListOutlined />, value: 'flow' },
2121
];
2222

23+
const { useToken } = theme;
24+
2325
const ModeSwitch = () => {
2426
const { updateStore, store } = useContext();
2527
const { mode } = store;
@@ -72,12 +74,15 @@ const Header: React.FunctionComponent<IHeaderProps> = props => {
7274
const { connectComponent, displaySidebarPosition } = props;
7375
const { store } = useContext();
7476
const { language } = store;
77+
const { token } = useToken();
7578

7679
return (
7780
<div
7881
style={{
7982
width: '100%',
80-
padding: '8px 0px',
83+
padding: '10px 0px',
84+
backgroundColor: token.colorBgContainer,
85+
boxShadow: '0 1px 2px rgba(0, 0, 0, 0.03)'
8186
}}
8287
>
8388
<Flex justify="space-between" align="center">

0 commit comments

Comments
 (0)