ソースを参照

ui: update search page grid

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 週間 前
コミット
e0a3758e55
1 ファイル変更1 行追加11 行削除
  1. 1 11
      client/src/pages/databases/collections/search/Search.tsx

+ 1 - 11
client/src/pages/databases/collections/search/Search.tsx

@@ -345,17 +345,6 @@ const Search = (props: CollectionDataProps) => {
                   />
                 );
               },
-              getStyle: d => {
-                const field = collection.schema.fields.find(
-                  f => f.name === key
-                );
-                if (!d || !field) {
-                  return {};
-                }
-                return {
-                  minWidth: getColumnWidth(field),
-                };
-              },
             };
           })
       : [];
@@ -644,6 +633,7 @@ const Search = (props: CollectionDataProps) => {
                 sx={{
                   height: 'calc(100% - 64px)',
                 }}
+                addSpacerColumn={true}
                 toolbarConfigs={[]}
                 colDefinitions={colDefinitions}
                 rows={result}