fix: move bgp brief markdown into a modal workspace

This commit is contained in:
rayd1o committed 2026-04-10 03:57:13 +08:00
1 parent fbb6adfbf5
commit 60f5ff9bab
8 files changed
+135 -26

No files matched your search

+75 -10
View File
@@ -1038,15 +1038,6 @@ body {
gap: 12px;
}
.bgp-page__brief-content {
min-height: 360px;
overflow: visible;
padding: 14px 16px;
border-radius: 14px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.98));
border: 1px solid rgba(5, 5, 5, 0.08);
}
.bgp-page__brief-head {
display: flex;
align-items: flex-start;
@@ -1058,10 +1049,20 @@ body {
display: flex;
align-items: center;
gap: 12px;
margin-left: auto;
min-width: 0;
}
.bgp-page__brief-select {
min-width: 260px;
width: 320px;
min-width: 240px;
}
.bgp-page__brief-buttons {
display: flex;
align-items: center;
flex: 0 0 auto;
gap: 12px;
}
.bgp-page__brief-subtitle {
@@ -1071,6 +1072,22 @@ body {
line-height: 1.5;
}
@media (max-width: 960px) {
.bgp-page__brief-head {
flex-direction: column;
}
.bgp-page__brief-actions {
width: 100%;
margin-left: 0;
}
.bgp-page__brief-select {
flex: 1 1 auto;
width: auto;
}
}
.bgp-page__brief-loading,
.bgp-page__brief-empty {
min-height: 72px;
@@ -1089,6 +1106,54 @@ body {
padding: 8px 12px;
}
.bgp-page__brief-modal-body {
max-height: calc(100vh - 180px);
overflow: auto;
padding-right: 6px;
scrollbar-width: thin;
scrollbar-color: rgba(148, 163, 184, 0.88) transparent;
}
.bgp-page__brief-modal {
max-width: min(920px, calc(100vw - 32px));
}
.bgp-page__brief-modal .ant-modal-content {
max-height: calc(100vh - 48px);
overflow: hidden;
}
.bgp-page__brief-modal .ant-modal-body {
overflow: hidden;
}
.bgp-page__brief-modal-body::-webkit-scrollbar {
width: 8px;
}
.bgp-page__brief-modal-body::-webkit-scrollbar-thumb {
border-radius: 999px;
background: rgba(148, 163, 184, 0.88);
}
.bgp-page__brief-modal-body::-webkit-scrollbar-track {
background: transparent;
}
@media (max-width: 768px) {
.bgp-page__brief-modal {
max-width: calc(100vw - 20px);
}
.bgp-page__brief-modal .ant-modal-content {
max-height: calc(100vh - 20px);
}
.bgp-page__brief-modal-body {
max-height: calc(100vh - 156px);
}
}
.markdown-renderer {
color: #262626;
font-size: 13px;