-
Notifications
You must be signed in to change notification settings - Fork 2.6k
perf: Partial icon updates #3847
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
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 |
|---|---|---|
|
|
@@ -61,7 +61,14 @@ | |
| <!-- <el-table-column type="selection" width="55" /> --> | ||
| <el-table-column width="220" :label="$t('common.name')" show-overflow-tooltip> | ||
| <template #default="{ row }"> | ||
| {{ row.name }} | ||
| <el-space :size="8"> | ||
| <span | ||
| style="width: 24px; height: 24px; display: inline-block" | ||
| :innerHTML="getRowProvider(row)?.icon" | ||
| > | ||
| </span> | ||
| <span> {{ row.name }}</span> | ||
| </el-space> | ||
| </template> | ||
| </el-table-column> | ||
| <el-table-column | ||
|
Contributor
Author
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 code has minor improvements to improve readability and user experience:
-<template #default="{ row }">
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -421,5 +421,10 @@ onMounted(() => { | |
| background: var(--app-header-bg-color); | ||
| } | ||
| } | ||
| .theme-form { | ||
| :deep(.el-checkbox__input.is-checked + .el-checkbox__label) { | ||
| color: var(--el-checkbox-text-color); | ||
| } | ||
| } | ||
| } | ||
| </style> | ||
|
Contributor
Author
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 code snippet is already mostly correct, but you can add some minor optimizations: <style>
/* Additions to optimize specificity */
.theme-form .el-checkbox__label:hover,
.theme-form .el-checkbox__inner:focus {
background-color: transparent;
}
.theme-form label.el-checkbox--mini+.el-checkbox__label{
font-size: 1rem; /* Apply consistent font size for all labels regardless of size */
}
</style>Key Suggestions:
Make sure these changes do not conflict with existing styles in other parts of your application. Adjust the properties as necessary to fit your project's style guide or theme conventions. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <template> | ||
| <img src="@/assets/workflow/icon_globe_color.svg" style="width: 18px" alt="" /> | ||
| <img src="@/assets/workflow/icon_chat_color.svg" style="width: 18px" alt="" /> | ||
| </template> | ||
| <script setup lang="ts"></script> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <template> | ||
| <img src="@/assets/workflow/icon_chat_color.svg" style="width: 18px" alt="" /> | ||
| <img src="@/assets/workflow/icon_globe_color.svg" style="width: 18px" alt="" /> | ||
| </template> | ||
| <script setup lang="ts"></script> |
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 code snippet appears to be part of a Vue component's configuration file, likely used in Element Plus or Vaadin applications. Here’s a brief review:
Irregularities:
iconReaderfunction is defined twice under different keys ('app-user-chat-active'and'app-resource-management'). If you intend these icons to have different functionality, consider consolidating them.Potential Issues:
Optimization Suggestions:
Consolidate Icons: Combine the two similar
iconReaderfunctions into one if they have different functionalities:Error Handling: Add basic error handling within the SVG definition to catch and display any rendering errors:
These changes will help ensure smooth rendering of both icons while maintaining consistency in your application’s design.