Skip to content

Commit

Permalink
style(pro:transfer,tree): modify tree node horizontal padding
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Jan 29, 2024
1 parent f091062 commit f34e8e8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/components/tree-select/theme/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function getDefaultThemeTokens(tokens: GlobalThemeTokens): CertainThemeTo
optionPadding: `${paddingSizeSm}px ${paddingSizeMd}px`,
optionMarginLeft: marginSizeSm,
optionContainerPadding: `${paddingSizeXs}px 0`,
optionContainerTreeNodePadding: `0 0 0 ${paddingSizeSm}px`,
optionContainerTreeNodePadding: `0 0 0 ${paddingSizeMd}px`,

overlaySearchWrapperPadding: `${paddingSizeXs}px ${paddingSizeMd}px ${paddingSizeSm}px`,
}
Expand Down
1 change: 1 addition & 0 deletions packages/pro/transfer/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
&.@{tree-prefix}-blocked .@{tree-node-prefix} {
transition: none;
background-color: var(--ix-color-container-bg);
padding-left: var(--ix-padding-size-md);
&:hover {
background-color: var(--ix-color-container-bg-hover);
&-content {
Expand Down
8 changes: 4 additions & 4 deletions packages/pro/tree/demo/Basic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ const onUpdateSelectedKeys = (keys: string[]) => {
.demo-pro-tree {
.add-btn {
font-size: 12px;
color: #1c6eff;
color: var(--ix-color-primary);
}
.ix-tree-node {
.ix-tree-node-content-suffix {
position: sticky;
right: 12px;
right: 0;
display: none;
}
Expand All @@ -169,9 +169,9 @@ const onUpdateSelectedKeys = (keys: string[]) => {
}
.operation-icon {
color: #5e6573;
color: var(--ix-color-icon);
&:hover {
color: #1c6eff;
color: var(--ix-color-icon-hover);
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions packages/pro/tree/style/variables.less
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@pro-tree-border: var(--ix-line-width) var(--ix-line-type) var(--ix-color-border-secondary);
@pro-tree-padding: 0;
@pro-tree-header-search-wrapper-gap: 4px;
@pro-tree-header-search-wrapper-horizontal-spacing: 12px;
@pro-tree-header-search-wrapper-gap: var(--ix-margin-size-xs);
@pro-tree-header-search-wrapper-horizontal-spacing: var(--ix-padding-size-md);
@pro-tree-header-search-wrapper-vertical-spacing: 0;
@pro-tree-search-wrapper-margin-bottom: 8px;
@pro-tree-search-wrapper-margin-bottom: var(--ix-margin-size-sm);
@pro-tree-search-input-suffix-color: var(--ix-color-icon-info);
@pro-tree-header-wrapper-icon-font-size: var(--ix-font-size-icon);
@pro-tree-header-wrapper-icon-hover-color: var(--ix-color-icon-hover);
Expand All @@ -12,5 +12,5 @@
@pro-tree-content-vertical-spacing: 0;

@pro-tree-divider-horizontal-spacing: @pro-tree-header-search-wrapper-horizontal-spacing;
@pro-tree-divider-vertical-spacing: 8px;
@pro-tree-node-padding: 0 0 0 8px;
@pro-tree-divider-vertical-spacing: var(--ix-margin-size-sm);
@pro-tree-node-padding: 0 0 0 var(--ix-padding-size-md);

0 comments on commit f34e8e8

Please sign in to comment.