-
Notifications
You must be signed in to change notification settings - Fork 3.2k
style: Adjust the home page recommended application style #8284
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 |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| @font-face { | ||
| font-family: "iconfont"; /* Project id 4776196 */ | ||
| src: url('iconfont.woff2?t=1742467026147') format('woff2'), | ||
| url('iconfont.woff?t=1742467026147') format('woff'), | ||
| url('iconfont.ttf?t=1742467026147') format('truetype'), | ||
| url('iconfont.svg?t=1742467026147#iconfont') format('svg'); | ||
| src: url('iconfont.woff2?t=1743473205128') format('woff2'), | ||
| url('iconfont.woff?t=1743473205128') format('woff'), | ||
| url('iconfont.ttf?t=1743473205128') format('truetype'), | ||
| url('iconfont.svg?t=1743473205128#iconfont') format('svg'); | ||
| } | ||
|
|
||
| .iconfont { | ||
|
|
@@ -14,6 +14,10 @@ | |
| -moz-osx-font-smoothing: grayscale; | ||
| } | ||
|
|
||
| .p-huobao1:before { | ||
| content: "\e604"; | ||
| } | ||
|
|
||
| .p-gerenzhongxin1:before { | ||
| content: "\e61e"; | ||
| } | ||
|
Member
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 changes appear to be small updates to version metadata (specifically the timestamp parameter) within various URLs used in an Additionally, adding These modifications do not introduce any critical errors or inefficiencies; they are likely part of ongoing development efforts related to maintaining updated versions of font resources. However, if these additions were intentional enhancements that improve visual styling by introducing new icon support, they should still be reviewed for their impact on overall performance and maintainability unless otherwise specified. |
||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,33 +27,13 @@ | |
| <div class="h-app-card" v-for="(app, index) in apps" :key="index"> | ||
| <el-row :gutter="5"> | ||
| <el-col :span="5"> | ||
| <div> | ||
| <el-badge | ||
| badge-style="background-color: transparent; font-size: 10px; border: none" | ||
| v-if="app.isRecommend" | ||
| :offset="[-60, 0]" | ||
| > | ||
| <template #content> | ||
| <svg-icon iconName="p-tuijian"></svg-icon> | ||
| </template> | ||
| <el-avatar | ||
| shape="square" | ||
| :size="55" | ||
| :src="'data:image/png;base64,' + app.icon" | ||
| /> | ||
| </el-badge> | ||
| <el-avatar | ||
| v-else | ||
| shape="square" | ||
| :size="55" | ||
| :src="'data:image/png;base64,' + app.icon" | ||
| /> | ||
| </div> | ||
| <el-avatar shape="square" :size="55" :src="'data:image/png;base64,' + app.icon" /> | ||
| </el-col> | ||
| <el-col :span="16"> | ||
| <div class="h-app-content" v-if="!app.currentRow"> | ||
| <div> | ||
| <span class="h-app-title">{{ app.name }}</span> | ||
| <svg-icon class="svg-icon" iconName="p-huobao1"></svg-icon> | ||
| </div> | ||
| <div class="h-app-desc"> | ||
| <span> | ||
|
|
@@ -335,6 +315,7 @@ defineExpose({ | |
| } | ||
|
|
||
| .h-app-desc { | ||
| margin-top: 2px; | ||
| span { | ||
| font-weight: 400; | ||
| font-size: 12px; | ||
|
|
@@ -362,6 +343,12 @@ defineExpose({ | |
| color: var(--el-text-color-regular); | ||
| } | ||
|
|
||
| .svg-icon { | ||
| font-size: 5px !important; | ||
| margin-left: 5px; | ||
| margin-bottom: 2px; | ||
| } | ||
|
|
||
| .h-button-setting { | ||
| float: right; | ||
| margin-left: 5px; | ||
|
Member
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 has several minor improvements, but no major irregularities were noted:
Overall, the changes maintain clean and consistent formatting while improving some visual details like spacing around text and icons. No further optimizations or corrections are necessary at this time. |
||
|
|
||
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 provided code snippet has a few minor issues that can be addressed for better clarity and performance:
1pane-agent.serviceand1pane-core.servicehave been combined into one line of command execution with an additional delay.Improved Functionality:
Consolidation: Combined similar calls to
ExecWithTimeout()and added comments where appropriate to clarify each step.This revision ensures that all necessary system services are gracefully restarted in a single operation, reducing overhead and improving maintainability.