This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch branch-1.2
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/branch-1.2 by this push:
     new 24c740a654 [Cherry-pick to branch-1.2] [#10232] web-v2(UI): fix 
propertiesContent display issue (#10234) (#10278)
24c740a654 is described below

commit 24c740a6547d3712fe9f6efa9683ca048a317c61
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Mar 6 15:10:15 2026 +0800

    [Cherry-pick to branch-1.2] [#10232] web-v2(UI): fix propertiesContent 
display issue (#10234) (#10278)
    
    **Cherry-pick Information:**
    - Original commit: cad096319715a2a63e4d1c01de3dd34c46d937dd
    - Target branch: `branch-1.2`
    - Status: ✅ Clean cherry-pick (no conflicts)
    
    Co-authored-by: Qian Xia <[email protected]>
    Co-authored-by: LauraXia123 <[email protected]>
---
 web-v2/web/src/components/PropertiesContent.js | 38 +++++++++++---------------
 1 file changed, 16 insertions(+), 22 deletions(-)

diff --git a/web-v2/web/src/components/PropertiesContent.js 
b/web-v2/web/src/components/PropertiesContent.js
index ce1ad551b0..3b5df42276 100644
--- a/web-v2/web/src/components/PropertiesContent.js
+++ b/web-v2/web/src/components/PropertiesContent.js
@@ -18,7 +18,6 @@
  */
 
 import React from 'react'
-import { Space } from 'antd'
 import { sanitizeText } from '@/lib/utils/index'
 
 const PropertiesContent = ({ properties, dataReferPrefix, contentDataRefer }) 
=> {
@@ -29,33 +28,28 @@ const PropertiesContent = ({ properties, dataReferPrefix, 
contentDataRefer }) =>
   const contentProps = contentDataRefer ? { 'data-refer': contentDataRefer } : 
{}
 
   return (
-    <Space.Compact className='max-h-80 overflow-auto' {...contentProps}>
-      <Space.Compact direction='vertical' className='divide-y border-gray-100'>
-        <span className='min-w-24 bg-gray-100 p-1'>Key</span>
-        {entries.map(([key]) => (
-          <span className='p-1 block min-w-24 max-w-60 truncate' title={key} 
key={`prop-key-${key}`} {...keyProps(key)}>
-            {key}
-          </span>
-        ))}
-      </Space.Compact>
-      <Space.Compact direction='vertical' className='divide-y border-gray-100'>
-        <span className='min-w-24 bg-gray-100 p-1'>Value</span>
+    <div className='max-h-80 overflow-auto' {...contentProps}>
+      <div className='min-w-[28rem]'>
+        <div className='sticky top-0 z-10 grid grid-cols-2 bg-gray-100'>
+          <span className='p-1 font-medium'>Key</span>
+          <span className='p-1 font-medium'>Value</span>
+        </div>
         {entries.map(([key, value]) => {
           const safeValue = sanitizeText(value) || '-'
 
           return (
-            <span
-              className='p-1 block min-w-24 max-w-60 truncate'
-              title={safeValue}
-              key={`prop-val-${key}`}
-              {...valueProps(key)}
-            >
-              {safeValue}
-            </span>
+            <div key={`prop-row-${key}`} className='grid grid-cols-2 border-t 
border-gray-100'>
+              <span className='block min-w-24 max-w-60 truncate p-1 leading-6' 
title={key} {...keyProps(key)}>
+                {key}
+              </span>
+              <span className='block min-w-24 max-w-60 truncate p-1 leading-6' 
title={safeValue} {...valueProps(key)}>
+                {safeValue}
+              </span>
+            </div>
           )
         })}
-      </Space.Compact>
-    </Space.Compact>
+      </div>
+    </div>
   )
 }
 

Reply via email to