chore: auto merge branches (#46436)

chore: feature merge master
This commit is contained in:
github-actions[bot] 2023-12-13 13:35:31 +00:00 committed by GitHub
commit dbffde90c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 59 deletions

View File

@ -20,7 +20,7 @@ Segmented Controls. This component is available since `antd@4.20.0`.
<!-- prettier-ignore -->
<code src="./demo/basic.tsx">Basic</code>
<code src="./demo/block.tsx">Block Segmented</code>
<code src="./demo/disabled.tsx">Basic</code>
<code src="./demo/disabled.tsx">Disabled</code>
<code src="./demo/controlled.tsx">Controlled mode</code>
<code src="./demo/custom.tsx">Custom Render</code>
<code src="./demo/dynamic.tsx">Dynamic</code>

View File

@ -58,9 +58,8 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
alignItems: 'center',
height: '100%',
// Multiple is little different that horizontal is follow the vertical
padding: `${unit(token.calc(selectItemDist).sub(FIXED_ITEM_MARGIN).equal())} ${unit(
token.calc(FIXED_ITEM_MARGIN).mul(2).equal(),
)}`,
paddingInline: token.calc(FIXED_ITEM_MARGIN).mul(2).equal(),
paddingBlock: token.calc(selectItemDist).sub(FIXED_ITEM_MARGIN).equal(),
borderRadius: token.borderRadius,
[`${componentCls}-show-search&`]: {

View File

@ -1,74 +1,79 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ant Design Visual Diff Report</title>
<link href="https://unpkg.com/antd@latest/dist/reset.css" rel="stylesheet" />
<style>
body {
padding-top: 16px;
padding-bottom: 16px;
}
/* Table Styles */
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ant Design Visual Diff Report</title>
<link href="https://unpkg.com/antd@latest/dist/reset.css" rel="stylesheet" />
<style>
body {
padding-top: 16px;
padding-bottom: 16px;
}
/* Table Styles */
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
vertical-align: top;
}
th {
background-color: #f2f2f2;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
/* Hover Effect */
tr:hover {
background-color: #e5e5e5;
}
/* Responsive Table */
@media screen and (max-width: 600px) and (min-width: 1px) {
table {
width: 100%;
border-collapse: collapse;
border: 0;
}
th,
td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
display: block;
padding: 6px;
border: none;
}
th {
background-color: #f2f2f2;
text-align: left;
background-color: transparent;
}
tr:nth-child(even) {
background-color: #f9f9f9;
background-color: transparent;
}
tr:nth-child(odd) {
background-color: transparent;
}
/* Hover Effect */
tr:hover {
background-color: #e5e5e5;
background-color: transparent;
}
}
</style>
</head>
/* Responsive Table */
@media screen and (max-width: 600px) and (min-width: 1px) {
table {
border: 0;
}
<body>
{{reportContent}}
</body>
th,
td {
display: block;
padding: 6px;
border: none;
}
th {
text-align: left;
background-color: transparent;
}
tr:nth-child(even) {
background-color: transparent;
}
tr:nth-child(odd) {
background-color: transparent;
}
tr:hover {
background-color: transparent;
}
}
</style>
</head>
<body>
{{reportContent}}
</body>
</html>
</html>