File size: 3,452 Bytes
494c9e4
 
c4753aa
 
 
 
 
 
 
 
 
 
 
 
 
494c9e4
a0b7722
494c9e4
a0b7722
494c9e4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Attribution:在 start + chat 之上仅叠本页差异(chat.scss 已含 toolbar / right-stack / cached bar / history 下拉)
@use "attribution-inspector";
@use "breakpoints" as *;

// 桌面端:覆盖全局 min-height:100%,使 #results 按内容收缩(debug 面板紧跟其后)
@media (min-width: $breakpoint-tablet) {
  html:not([data-force-narrow]) .right_panel > #results.attribution-inspector-surface {
    flex: 0 0 auto;
    min-height: 350px;  // 覆盖 _responsive.scss 的 min-height:100%,保留兜底高度
  }

  html:not([data-force-narrow]) .right_panel > #attribution_debug_container {
    flex: 0 0 auto;
  }
}

// Cached history 下拉:覆盖 mixin 的 max-height:200px;高度随条目、封顶 min(32vh,360px),并可竖向 resize
#attribution_cached_history_dropdown.semantic-search-history-dropdown {
  max-height: min(32vh, 360px);
  resize: vertical;
  overflow-y: auto;
}

#attribution_result_info {
  white-space: pre-line;
  text-align: center;
}

// Target prediction 面板与上方 Context 面板之间的间距
.attribution-target-panel {
  margin-top: 12px;
}

// Target prediction 输入框较矮(chat.scss 中 .input-section textarea 默认 250px,此处覆盖 target)
.attribution-target-panel .textarea-wrapper textarea {
  height: 60px;
}

// Analyze 行下方:与 semantic_submode_row 同系样式(见 _semantic-analysis.scss)
.attribution-max-score-row {
  margin-top: 10px;
  flex-wrap: wrap;
}

.attribution-use-mapping-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: inherit;
  cursor: pointer;
  user-select: none;
}

.attribution-max-score-slider-group {
  flex: 1 1 180px;
  min-width: 0;
}

.attribution-max-score-range {
  flex: 1 1 auto;
  min-width: 80px;
  max-width: 220px;
  vertical-align: middle;
}

// 「Max score」标签与数值:继承字体;未勾选映射时为灰色,勾选后主色
.attribution-max-score-row.semantic-submode-row {
  .semantic-submode-label {
    font-size: inherit;
  }

  .attribution-max-score-value {
    font-size: inherit;
    font-variant-numeric: tabular-nums;
    min-width: 2.5em;
    text-align: right;
  }

  &:not(:has(#attribution_use_mapping:checked)) {
    .attribution-max-score-slider-group .semantic-submode-label,
    .attribution-max-score-value {
      color: var(--text-muted);
    }
  }

  &:has(#attribution_use_mapping:checked) {
    .attribution-max-score-slider-group .semantic-submode-label,
    .attribution-max-score-value {
      color: var(--text-primary);
    }
  }
}

.attribution-exclude-prompt-patterns-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

// 「Exclude prompt patterns」标签:与 Max score 行共用 semantic-submode-row(gap 等);未勾选使能时为灰色,勾选后主色
.attribution-exclude-prompt-patterns-header {
  flex-wrap: wrap;

  &:not(:has(#attribution_exclude_prompt_patterns_enable:checked)) .semantic-submode-label {
    color: var(--text-muted);
  }

  &:has(#attribution_exclude_prompt_patterns_enable:checked) .semantic-submode-label {
    color: var(--text-primary);
  }
}

.attribution-exclude-prompt-patterns-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 9pt;
  padding: 6px 8px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-color);

  &:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
}