-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Pr@main/perf style #2548
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
Pr@main/perf style #2548
Changes from all 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 |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| --el-color-info: #8f959e !important; | ||
| --el-disabled-bg-color: #eff0f1 !important; | ||
| --el-text-color-primary: #1f2329; | ||
| --el-font-line-height-primary: 22px; | ||
| } | ||
|
|
||
| .el-button { | ||
|
|
@@ -134,7 +135,7 @@ | |
| } | ||
| .el-message-box__headerbtn { | ||
| right: 10px; | ||
| top: 15px; | ||
| top: 16px; | ||
| .el-message-box__close { | ||
| font-size: 20px; | ||
| } | ||
|
|
@@ -267,7 +268,7 @@ | |
| } | ||
|
|
||
| .el-select__wrapper.is-disabled { | ||
| background-color: var(--el-disabled-bg-color)!important; | ||
| background-color: var(--el-disabled-bg-color) !important; | ||
| } | ||
| .el-select__placeholder { | ||
| font-weight: 400; | ||
|
|
@@ -350,7 +351,7 @@ | |
| } | ||
|
|
||
| .radio_content .is-disabled { | ||
| background-color: var(--el-disabled-bg-color)!important;; | ||
| background-color: var(--el-disabled-bg-color) !important; | ||
| } | ||
|
|
||
| .el-input-number.is-controls-right .el-input__wrapper { | ||
|
|
@@ -421,4 +422,4 @@ | |
|
|
||
| .el-table .el-popper { | ||
| max-width: 500px !important; | ||
| } | ||
| } | ||
|
Contributor
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. The provided CSS code doesn't have any errors. However, there's a minor issue with the last closing brace on the ".el-input-numb" block (`}") that needs to be closed properly. Here is your updated code: /* Previous lines remain unchanged */
.el-table .el-popper {
max-width: 500px !important;
}This should fix the syntax error and ensure no additional changes are needed in this snippet. If you need further assistance or modifications, please let me know! |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,10 +24,14 @@ | |
| v-if="first" | ||
| :image="emptyImg" | ||
| :description="$t('views.application.hitTest.emptyMessage1')" | ||
| style="padding-top: 160px" | ||
| :image-size="125" | ||
| /> | ||
| <el-empty | ||
| v-else-if="paragraphDetail.length == 0" | ||
| :description="$t('views.application.hitTest.emptyMessage2')" | ||
| style="padding-top: 160px" | ||
| :image-size="125" | ||
| /> | ||
| <el-row v-else> | ||
| <el-col | ||
|
|
@@ -385,7 +389,7 @@ onMounted(() => {}) | |
| } | ||
|
|
||
| .hit-test-height { | ||
| height: calc(var(--app-main-height) - 170px); | ||
| height: calc(var(--app-main-height) - 135px); | ||
| } | ||
| .document-card { | ||
| height: 210px; | ||
|
Contributor
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. In your provided code snippet, there are no irregularities or major concerns beyond minor stylistic and functional improvements:
Overall, the changes you've made improve readability and potentially usability by providing additional visual guidance and ensuring better alignment across different sections of the component. However, it's important to verify that these adjustments do not negatively impact the user experience or compatibility with other parts of the system. |
||
|
|
||
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.
The changes proposed involve two main optimizations:
Enhanced MD Renderer Styling: By setting
--el-card-paddingin the<el-card>component with inline styles (style="..."). This change enhances readability, maintainability, and reduces the need to pass padding props through nested components.Removed Unnecessary Shadows: The commented-out lines that set shadows (
shadow="always"on both the<span>inside thev-else-ifconditions) have been removed. While these might be intended for styling purposes, since they do not affect visual output directly, it is cleaner to remove extraneous CSS rules unless absolutely necessary.