去掉与 master 重复的游戏评价页排布实现
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 5m57s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 2m42s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 4m50s
Project CI / Frontend tests (pull_request) Successful in 3m30s
Project CI / Backend tests (pull_request) Successful in 7m0s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m47s
Project CI / Native shell tests (pull_request) Successful in 7m59s
Project CI / Repository checks (pull_request) Successful in 6m43s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 5m57s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 2m42s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 4m50s
Project CI / Frontend tests (pull_request) Successful in 3m30s
Project CI / Backend tests (pull_request) Successful in 7m0s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m47s
Project CI / Native shell tests (pull_request) Successful in 7m59s
Project CI / Repository checks (pull_request) Successful in 6m43s
- AdminGameReviewsPage.tsx:删除我们新增的重复 tableClassName(master 已在同一组件上有一份,保留 master 那处),保证同名 JSX 属性只剩一处
- AdminGameReviewsPage.tsx:操作列 td 去掉 className="admin-game-reviews-actions-cell"(该 class 的唯一样式来源已随本提交删除,留着就是死代码)
- styles/admin.css:整段删除我们尾部新增的平行实现(.admin-game-reviews-table th:last-child 与 .admin-game-reviews-actions-cell .admin-action-row 的 width/nowrap/flex-end)
- 保留 master 的评价列表排布体系:.admin-game-reviews-table .admin-status、td:last-child .admin-action-row{flex-wrap:nowrap;justify-content:flex-start} 与 >button{flex-shrink:0}
- 自证:tableClassName="admin-game-reviews-table" 命中 1 处;admin-game-reviews-actions-cell 命中 0 处
This commit is contained in:
@@ -298,7 +298,6 @@ export function AdminGameReviewsPage({ token, onUnauthorized }: PageProps) {
|
||||
emptyText="暂无评价。"
|
||||
emptyVariant="text"
|
||||
size="wide"
|
||||
tableClassName="admin-game-reviews-table"
|
||||
columns={[
|
||||
{ key: 'game', label: '游戏' },
|
||||
{ key: 'author', label: '评价用户' },
|
||||
@@ -336,7 +335,7 @@ export function AdminGameReviewsPage({ token, onUnauthorized }: PageProps) {
|
||||
</td>
|
||||
<td>{formatAdminDateTime(review.createdAt)}</td>
|
||||
<td>{formatAdminDateTime(review.updatedAt)}</td>
|
||||
<td className="admin-game-reviews-actions-cell">
|
||||
<td>
|
||||
<AdminActionRow>
|
||||
<AdminButton
|
||||
variant="secondary"
|
||||
|
||||
@@ -3632,19 +3632,3 @@ button:disabled {
|
||||
.admin-game-author-cell {
|
||||
min-width: 190px;
|
||||
}
|
||||
|
||||
/*
|
||||
* 游戏评价列表(AdminGameReviewsPage)专属排布,选择器全部框在本页表格内,
|
||||
* 不影响其它后台页面:操作列按内容取宽且按钮组不换行,避免「删除」被挤到
|
||||
* 第二行、与「查看详情」「隐藏」错行。做法与 .admin-game-actions-cell 保持一致。
|
||||
*/
|
||||
.admin-game-reviews-table th:last-child,
|
||||
.admin-game-reviews-table td.admin-game-reviews-actions-cell {
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.admin-game-reviews-actions-cell .admin-action-row {
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user