-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(time-spinner): [date-picker] roll back some styles for time-spinner #2383
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -29,8 +29,10 @@ | |||||
// 图标尺寸 | ||||||
--tv-TimeSpinner-icon-size: var(--tv-icon-size, 16px); | ||||||
|
||||||
// 列表外间距 | ||||||
--tv-TimeSpinner-list-margin: 10px 0 30px 0; | ||||||
// 时间项外间距 | ||||||
--tv-TimeSpinner-item-margin: var(--tv-space-lg, 12px) var(--tv-space-md, 8px) 0 var(--tv-space-md, 8px); | ||||||
--tv-TimeSpinner-item-margin: var(--tv-space-lg, 12px) 10px 0 10px; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider maintaining theme adaptability. The change from --- --tv-TimeSpinner-item-margin: var(--tv-space-lg, 12px) 10px 0 10px;
+++ --tv-TimeSpinner-item-margin: var(--tv-space-lg, 12px) var(--tv-space-md, 8px) 0 var(--tv-space-md, 8px); 📝 Committable suggestion
Suggested change
|
||||||
// 时间项内间距 | ||||||
--tv-TimeSpinner-item-padding: 3.5px 0; | ||||||
// 时间项圆角 | ||||||
|
@@ -41,7 +43,4 @@ | |||||
--tv-TimeSpinner-item-bg-color-active: var(--tv-color-bg-active-emphasize, #deecff); | ||||||
// 时间项背景色(禁用) | ||||||
--tv-TimeSpinner-item-bg-color-disabled: var(--tv-color-bg-disabled, #f0f0f0); | ||||||
|
||||||
// 箭头内间距 | ||||||
--tv-TimeSpinner-arrow-padding: calc((var(--tv-size-height-sm) - var(--tv-TimeSpinner-icon-size)) / 2) 0; | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider using a CSS variable for item width.
For better maintainability and consistency, consider moving the explicit width to a CSS variable.
📝 Committable suggestion