Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/pages/components/ScriptMenuList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ const ListMenuItem = React.memo(

return (
<Collapse
className={"popup-list-item"}
activeKey={isActive ? item.uuid : undefined}
onChange={(_, keys) => {
setIsActive(keys.includes(item.uuid));
Expand Down
1 change: 1 addition & 0 deletions src/pages/components/layout/PopupLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { ReactNode } from "react";
import React from "react";
import "./index.css";
import "./popup.css";
import { ConfigProvider } from "@arco-design/web-react";
import { arcoLocale } from "@App/locales/arco";
import i18n from "@App/locales/locales";
Expand Down
65 changes: 65 additions & 0 deletions src/pages/components/layout/popup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
.popup-div .arco-collapse-item-header {
padding-top: 6px;
padding-bottom: 6px;
line-height: 125%;
}

.popup-list-item .arco-collapse-item-header{
padding: 4px 12px;
line-height: initial;
}

.popup-list-item .arco-avatar-image {
width: 16px;
height: 16px;
}

.popup-list-item .arco-space-item:last-child {
margin-right: 16px;
}

.popup-list-item .arco-avatar-square {
display: inline-flex !important;
flex-direction: column !important;
align-items: center;
place-content: center;
place-items: center;
place-self: center;
margin-right: 4px !important;
}

.popup-list-item .arco-space-item {
display: inline-flex !important;
}


.popup-list-item .arco-collapse-item-active .arco-collapse-item-header-title {
font-weight: unset !important;
}

.popup-list-item .arco-collapse-item-content-box * {
line-height: initial;
}

.popup-list-item .arco-collapse-item-content-box .arco-btn-size-default {
height: 24px;
padding: 0 6px;
font-size: 12px;
}

.popup-list-item .arco-switch-small {
min-width: 28px;
height: 14px;
line-height: 14px;
}

.popup-list-item .arco-switch-small .arco-switch-dot {
border-radius: 6px;
width: 10px;
height: 10px;
left: 2px;
}

.popup-list-item .arco-switch-small.arco-switch-checked .arco-switch-dot {
left: calc(100% - 12px);
}
4 changes: 3 additions & 1 deletion src/pages/popup/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ function App() {
<>
<PopupWarnings isBlacklist={isBlacklist} />
<Card
className={"popup-div"}
size="small"
title={
<div className="tw-flex tw-justify-between">
Expand Down Expand Up @@ -496,6 +497,7 @@ function App() {
}
/>
<Collapse
className={"popup-body"}
bordered={false}
activeKey={collapseActiveKey}
onChange={(_, keys) => {
Expand Down Expand Up @@ -535,7 +537,7 @@ function App() {
/>
</CollapseItem>
</Collapse>
<div className="tw-flex tw-flex-row arco-card-header !tw-h-6">
<div className="popup-footer tw-flex tw-flex-row arco-card-header !tw-h-6">
{versionCompare(ExtVersion, checkUpdate.version) === VersionCompare.LESS ? (
<Tooltip content={`${t("popup.new_version_available")} (v${checkUpdate.version})`}>
<span
Expand Down
Loading