Browse Source

fix tab scroll

ruiyi.jiang 2 years ago
parent
commit
6f3812f51e

+ 1 - 1
client/src/components/code/CodeView.tsx

@@ -68,7 +68,7 @@ const getStyles = makeStyles((theme: Theme) => ({
   },
 
   block: {
-    height: `calc(100% - ${theme.spacing(4)})`,
+    height: `calc(100% - ${theme.spacing(4.5)})`,
     overflowY: 'auto',
   },
 }));

+ 1 - 0
client/src/components/customTabList/CustomTabList.tsx

@@ -25,6 +25,7 @@ const useStyles = makeStyles((theme: Theme) => ({
     flexBasis: 0,
     flexGrow: 1,
     marginTop: theme.spacing(2),
+    overflowY: 'auto',
   },
 }));
 

+ 0 - 1
client/src/pages/schema/Create.tsx

@@ -211,7 +211,6 @@ const CreateIndex = (props: {
    * create index code mode
    */
   const codeBlockData: CodeViewData[] = useMemo(() => {
-    console.log('m', indexSetting.index_name);
     const vectorTypes = [
       DataTypeStringEnum.BinaryVector,
       DataTypeStringEnum.FloatVector,

+ 0 - 14
client/src/styles/common.css

@@ -61,17 +61,3 @@ fieldset {
 .dialog-content::first-letter {
   text-transform: uppercase;
 }
-
-/* change scrollbar style */
-::-webkit-scrollbar {
-  width: 8px;
-}
-
-::-webkit-scrollbar-track {
-  background-color: #f9f9f9;
-}
-
-::-webkit-scrollbar-thumb {
-  border-radius: 8px;
-  background-color: #eee;
-}

+ 1 - 1
client/src/utils/code/Java.ts

@@ -28,7 +28,7 @@ milvusClient.createIndex(
     .withSyncMode(Boolean.FALSE)
     .build()
 );
-  `;
+`;
 
   return JavaCode;
 };