@ -5,6 +5,30 @@
user-select: none;
}
// Keep tab panes inside the viewport so long target lists can scroll internally.
.target-tabs {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
.target-tabs > .ant-tabs-content-holder {
.target-tabs .ant-tabs-content,
.target-tabs .ant-tabs-tabpane {
height: 100%;
// 美化滚动条
::-webkit-scrollbar {
width: 8px;
@ -83,7 +83,7 @@ const TargetList = ({
</div>
<Button
type="primary"
style={{ marginTop: "16px", width: "100%", flexShrink: 0 }}
style={{ margin: "16px 0", width: "100%", flexShrink: 0 }}
onClick={onClickClearAll}
>
一键清零
@ -576,12 +576,14 @@ const WuyuanbiaobaContent = () => {
<div
style={{
flex: 1,
minHeight: 0,
backgroundColor: "white",
display: "flex",
flexDirection: "column",
}}
<Tabs
className="target-tabs"
defaultActiveKey="target-list"
items={tabItems}