fix(style): catalog size tags overflow

This commit is contained in:
jialin
2025-01-09 09:26:42 +08:00
parent 39b6c00c6d
commit fb4666195c
14 changed files with 243 additions and 102 deletions
+3 -3
View File
@@ -11,13 +11,13 @@
:global {
.copy-button-wrapper {
display: none;
background-color: #383838;
background-color: rgba(255, 255, 255, 20%);
position: absolute;
z-index: 10;
right: -28px;
right: 0;
top: 0;
padding: 2px;
border-radius: 4px;
border-radius: 0 4px;
}
.simplebar-content {
+4 -2
View File
@@ -28,6 +28,7 @@ type StatusTagProps = {
download?: {
percent: number;
};
extra?: React.ReactNode;
actions?: {
label: string;
icon?: React.ReactNode;
@@ -40,6 +41,7 @@ type StatusTagProps = {
const StatusTag: React.FC<StatusTagProps> = ({
statusValue,
download,
extra,
actions = [],
type = 'tag'
}) => {
@@ -78,7 +80,6 @@ const StatusTag: React.FC<StatusTagProps> = ({
style={{ color: 'rgba(255,255,255,.8)' }}
text={statusValue.message || ''}
size="small"
placement="right"
></CopyButton>
{actions?.map((item) => {
return (
@@ -104,7 +105,7 @@ const StatusTag: React.FC<StatusTagProps> = ({
})}
</div>
<SimpleBar style={{ maxHeight: 200 }}>
<SimpleBar style={{ maxHeight: 200 }} autoHide={false}>
<div
style={{
width: 'max-content',
@@ -115,6 +116,7 @@ const StatusTag: React.FC<StatusTagProps> = ({
}}
>
{statusValue.message}
{extra}
</div>
</SimpleBar>
</div>