Skip to content

Commit

Permalink
style: 样式修改 (#1934)
Browse files Browse the repository at this point in the history
* style: 样式修改

* 还原
  • Loading branch information
song-xiao-lin authored Aug 23, 2024
1 parent 54b822d commit e36df0c
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 35 deletions.
1 change: 1 addition & 0 deletions app/renderer/src/main/src/pages/mitm/MITMPage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
display: flex;
align-items: center;
margin-right: 16px;
flex-shrink: 0;
.mitm-plugin-list-check-text {
margin-left: 4px;
font-size: 12px;
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/src/main/src/pages/mitm/MITMPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ export const MITMServer: React.FC<MITMServerProps> = React.memo((props) => {
)}
lineStyle={{display: isFullScreenSecondNode || isFullScreenFirstNode ? "none" : ""}}
firstMinSize={openTabsFlag ? "400px" : "24px"}
secondMinSize={620}
secondMinSize={720}
secondNode={() => (
<div
className={style["mitm-server-start-pre-second"]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,41 +81,43 @@ export const MITMLogHeardExtra: React.FC<MITMLogHeardExtraProps> = React.memo((p
</YakitCheckableTag>
))}
</div>
<YakitDropdownMenu
menu={{
data: [
{
key: "resetId",
label: "重置请求 ID"
},
{
key: "noResetId",
label: "不重置请求 ID"
}
],
onClick: ({key}) => {
switch (key) {
case "resetId":
cleanMitmLogTableData({DeleteAll: true})
break
case "noResetId":
cleanMitmLogTableData({Filter: {}, DeleteAll: false})
break
default:
break
<div className={styles["mitm-log-heard-right"]}>
<YakitDropdownMenu
menu={{
data: [
{
key: "resetId",
label: "重置请求 ID"
},
{
key: "noResetId",
label: "不重置请求 ID"
}
],
onClick: ({key}) => {
switch (key) {
case "resetId":
cleanMitmLogTableData({DeleteAll: true})
break
case "noResetId":
cleanMitmLogTableData({Filter: {}, DeleteAll: false})
break
default:
break
}
}
}
}}
dropdown={{
trigger: ["click"],
placement: "bottom"
}}
>
<YakitButton type='outline1' colors='danger'>
清空
</YakitButton>
</YakitDropdownMenu>
<HTTPFlowShield shieldData={shieldData} cancleFilter={cancleFilter} />
}}
dropdown={{
trigger: ["click"],
placement: "bottom"
}}
>
<YakitButton type='outline1' colors='danger'>
清空
</YakitButton>
</YakitDropdownMenu>
<HTTPFlowShield shieldData={shieldData} cancleFilter={cancleFilter} />
</div>
</div>
)
})
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@
align-items: center;
justify-content: space-between;
flex: 1;
&-right {
display: flex;
align-items: center;
gap: 8px;
}
}

.mitm-log {
Expand Down

0 comments on commit e36df0c

Please sign in to comment.