Skip to content

Commit 358ddb1

Browse files
committed
refactor: 技术列表去掉置信度小点 + 改 flex-wrap 紧贴排布
置信度信息保留在点击后的详情面板,列表里去掉每条尾部的小圆点;tech-grid 从固定列宽 grid 改成 flex-wrap,chip 按内容宽度自然横排,gap 收到 2px,密度进一步提升。 将版本号提升到 1.3.64。
1 parent 8b5e9cd commit 358ddb1

2 files changed

Lines changed: 7 additions & 32 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.3.63",
4+
"version": "1.3.64",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

src/ui/popup/Popup.vue

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,6 @@
130130
>
131131
<span :class="['tech-chip', techChipClass(tech)]" aria-hidden="true">{{ techInitial(tech) }}</span>
132132
<span class="tech-row-name">{{ tech.name }}</span>
133-
<span
134-
:class="['confidence-dot', confidenceClass(tech.confidence)]"
135-
:title="`${tech.confidence}置信度`"
136-
aria-hidden="true"
137-
></span>
138133
</button>
139134
</div>
140135
</section>
@@ -1628,26 +1623,24 @@
16281623
text-transform: none;
16291624
}
16301625
1631-
// 同类目里多个技术按 grid 排开:每个单元宽度自适应 140px+,popup 默认宽度下能塞下 2~3 列
1626+
// 同类目里多个技术用 flex-wrap 排开:按内容宽度自然换行,密度更高
16321627
.tech-grid {
1633-
display: grid;
1634-
gap: 4px;
1635-
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
1628+
display: flex;
1629+
flex-wrap: wrap;
1630+
gap: 2px;
16361631
}
16371632
1638-
// 单个技术 chip:色块图标 + 名字 + 置信度状态点
1633+
// 单个技术 chip:色块图标 + 名字
16391634
.tech-row {
16401635
align-items: center;
16411636
background: transparent;
16421637
border: 0;
16431638
border-radius: 5px;
16441639
color: var(--text);
16451640
cursor: pointer;
1646-
display: grid;
1641+
display: inline-flex;
16471642
font: inherit;
16481643
gap: 6px;
1649-
grid-template-columns: 18px 1fr 7px;
1650-
min-width: 0;
16511644
padding: 4px 8px;
16521645
text-align: left;
16531646
transition: background 0.15s ease;
@@ -1717,24 +1710,6 @@
17171710
width: 36px;
17181711
}
17191712
1720-
// 置信度状态点:6px 圆点,颜色继承 confidence-* token
1721-
.confidence-dot {
1722-
border-radius: 50%;
1723-
flex-shrink: 0;
1724-
height: 7px;
1725-
width: 7px;
1726-
1727-
&.high {
1728-
background: var(--confidence-high-text);
1729-
}
1730-
&.medium {
1731-
background: var(--confidence-medium-text);
1732-
}
1733-
&.low {
1734-
background: var(--confidence-low-text);
1735-
}
1736-
}
1737-
17381713
// 详情面板里仍保留的彩色置信度徽章(详情视图里信息密度低,徽章撑得开)
17391714
.confidence {
17401715
border-radius: 4px;

0 commit comments

Comments
 (0)