mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-12-01 12:43:30 +01:00
fix(ui): use square corners for detail drawers
This commit is contained in:
1 parent
6518bfe7d5
commit
91d3e3ac3f
4 files changed
+11
-7
No files matched your search
@@ -1,7 +1,7 @@
|
||||
# 界面样式约定
|
||||
|
||||
主应用的公共样式位于 `web/static/css/design-system.css`,在模块与移动端 CSS 后加载。
|
||||
颜色沿用现有主题变量;卡片圆角 16px,控件圆角 10px,桌面正文内边距 24px,移动端 16px。
|
||||
颜色沿用现有主题变量;抽屉外框统一为直角,卡片圆角 16px,控件圆角 10px,桌面正文内边距 24px,移动端 16px。
|
||||
状态色、选中态、图表、终端和工作流画布保留各自的业务语义。
|
||||
|
||||
## 容器选择
|
||||
|
||||
@@ -107,6 +107,12 @@ const server = http.createServer((req, res) => {
|
||||
w: r.width,
|
||||
h: r.height,
|
||||
bg: s.backgroundColor,
|
||||
corners: [
|
||||
s.borderTopLeftRadius,
|
||||
s.borderTopRightRadius,
|
||||
s.borderBottomRightRadius,
|
||||
s.borderBottomLeftRadius,
|
||||
],
|
||||
overflow: b ? b.scrollWidth > b.clientWidth + 2 : false,
|
||||
footer: p
|
||||
.querySelector(
|
||||
@@ -134,7 +140,8 @@ const server = http.createServer((req, res) => {
|
||||
Math.abs(info.x + info.w - width) > 2 ||
|
||||
Math.abs(info.h - height) > 2 ||
|
||||
info.footer > height + 1 ||
|
||||
info.overflow
|
||||
info.overflow ||
|
||||
info.corners.some((radius) => radius !== "0px")
|
||||
)
|
||||
findings.push({ width, theme, ...info });
|
||||
if (
|
||||
|
||||
@@ -93,7 +93,7 @@ html body [data-ui-surface="drawer"] > :is(.modal-content, .projects-modal-dialo
|
||||
padding: 0 !important;
|
||||
border: 0;
|
||||
border-inline-start: 1px solid var(--ui-border);
|
||||
border-radius: var(--ui-radius-card) 0 0 var(--ui-radius-card) !important;
|
||||
border-radius: 0 !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden !important;
|
||||
@@ -102,9 +102,6 @@ html body [data-ui-surface="drawer"] > :is(.modal-content, .projects-modal-dialo
|
||||
box-shadow: var(--ui-panel-shadow);
|
||||
animation: app-panel-in .18s ease-out !important;
|
||||
}
|
||||
html[dir="rtl"] body [data-ui-surface="drawer"] > :is(.modal-content, .projects-modal-dialog, .c2-modal) {
|
||||
border-radius: 0 var(--ui-radius-card) var(--ui-radius-card) 0 !important;
|
||||
}
|
||||
html body [data-ui-surface="drawer"] :is(.modal-header, .projects-modal-header, .c2-modal-header, .vulnerability-inspector-header) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<link rel="stylesheet" href="/static/css/mobile.css?v=20261015-project-table-3">
|
||||
<link rel="stylesheet" href="/static/css/vulnerability-workspace.css?v=20261113-aligned-overview">
|
||||
<link rel="stylesheet" href="/static/css/vulnerability-list.css?v=20261113-compact-rows">
|
||||
<link rel="stylesheet" href="/static/css/design-system.css?v=20261115-3">
|
||||
<link rel="stylesheet" href="/static/css/design-system.css?v=20261115-square-drawers">
|
||||
<script src="/static/js/router.js?v=20261011-token-settings"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user