-
Notifications
You must be signed in to change notification settings - Fork 3.2k
style: Optimize page styles. #8436
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 |
|---|---|---|
|
|
@@ -62,7 +62,7 @@ | |
| </template> | ||
| <template #main> | ||
| <div> | ||
| <MainDiv :heightDiff="mode === 'upgrade' ? 320 : 350"> | ||
| <MainDiv :heightDiff="mode === 'upgrade' ? 270 : 300"> | ||
| <el-alert | ||
| type="info" | ||
| :title="$t('app.upgradeHelper')" | ||
|
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. Yes, there is a difference of -10 pixels between |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,42 +37,43 @@ | |
| @sort-change="changeSort" | ||
| @filter-change="changeFilter" | ||
| ref="tableRef" | ||
| :heightDiff="300" | ||
| :heightDiff="220" | ||
| > | ||
| <el-table-column :label="'PID'" fix prop="PID" max-width="60px" sortable></el-table-column> | ||
| <el-table-column | ||
| :label="$t('commons.table.name')" | ||
| fix | ||
| prop="name" | ||
| min-width="120px" | ||
| ></el-table-column> | ||
| <el-table-column :label="'PID'" prop="PID" max-width="60px" sortable></el-table-column> | ||
| <el-table-column :label="$t('commons.table.name')" prop="name" min-width="120px"></el-table-column> | ||
| <el-table-column | ||
| :label="$t('process.ppid')" | ||
| min-width="120px" | ||
| fix | ||
| max-width="60px" | ||
| prop="PPID" | ||
| sortable | ||
| ></el-table-column> | ||
| <el-table-column :label="$t('process.numThreads')" fix prop="numThreads"></el-table-column> | ||
| <el-table-column :label="$t('commons.table.user')" fix prop="username"></el-table-column> | ||
| <el-table-column | ||
| :label="$t('process.numThreads')" | ||
| max-width="60px" | ||
| prop="numThreads" | ||
| ></el-table-column> | ||
| <el-table-column | ||
| :label="$t('commons.table.user')" | ||
| max-width="60px" | ||
| prop="username" | ||
| ></el-table-column> | ||
| <el-table-column | ||
| :label="'CPU'" | ||
| fix | ||
| max-width="60px" | ||
| prop="cpuValue" | ||
| :formatter="cpuFormatter" | ||
| sortable | ||
| ></el-table-column> | ||
| <el-table-column | ||
| :label="$t('process.memory')" | ||
| fix | ||
| max-width="60px" | ||
| prop="rssValue" | ||
| :formatter="memFormatter" | ||
| sortable | ||
| ></el-table-column> | ||
| <el-table-column :label="$t('process.numConnections')" fix prop="numConnections"></el-table-column> | ||
| <el-table-column :label="$t('process.numConnections')" prop="numConnections"></el-table-column> | ||
| <el-table-column | ||
| :label="$t('commons.table.status')" | ||
| fix | ||
| prop="status" | ||
| column-key="status" | ||
| :filters="[ | ||
|
|
@@ -93,7 +94,6 @@ | |
| </el-table-column> | ||
| <el-table-column | ||
| :label="$t('process.startTime')" | ||
| fix | ||
| prop="startTime" | ||
| min-width="140px" | ||
| ></el-table-column> | ||
|
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 provided have only minor adjustments to the column widths and labels without introducing any major issues or optimizations:
In summary, this change-set is generally clean and functional, aligning well with current practices in Vue.js components with Element UI libraries. |
||
|
|
||
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 change suggests reducing the
heightDiffproperty from 350 to 300 in the<MainDiv>component. This adjustment appears minor and should not introduce major issues unless there are specific reasons requiring this change, such as adjusting space available for other UI elements within the container that wraps<MainDiv>.