xinyu-pro 0.22.5 → 0.22.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1042,9 +1042,12 @@ function EditorPageContent() {
1042
1042
 
1043
1043
  {/* 字段管理(可折叠面板) */}
1044
1044
  <div className="shrink-0 border-b" style={{ borderColor: 'var(--color-border)' }}>
1045
- <button
1045
+ <div
1046
1046
  onClick={() => setFieldsExpanded(!fieldsExpanded)}
1047
- className="w-full flex items-center justify-between px-3 py-2 transition-colors"
1047
+ onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); setFieldsExpanded(!fieldsExpanded); } }}
1048
+ role="button"
1049
+ tabIndex={0}
1050
+ className="w-full flex items-center justify-between px-3 py-2 transition-colors cursor-pointer"
1048
1051
  style={{ color: 'var(--color-text-muted)' }}
1049
1052
  >
1050
1053
  <span className="flex items-center gap-1.5 text-xs font-bold">
@@ -1106,7 +1109,7 @@ function EditorPageContent() {
1106
1109
  <i className={`fa-solid fa-chevron-${fieldsExpanded ? 'up' : 'down'}`}
1107
1110
  style={{ fontSize: '10px' }} />
1108
1111
  </div>
1109
- </button>
1112
+ </div>
1110
1113
 
1111
1114
  {fieldsExpanded && (
1112
1115
  <div className="overflow-y-auto px-2 pb-2"