fix(content): 调整z-index值并添加renameCount属性

修复浮动按钮的z-index值以避免冲突
文件选择面板现在使用最大z-index值
添加renameCount属性用于显示实际重命名文件数
这个提交包含在:
Zain 2025-12-29 17:16:46 +08:00
父节点 b245c81a42
当前提交 61ee4ea620
共有 4 个文件被更改,包括 14 次插入 和 7 次删除

查看文件

@ -28,6 +28,12 @@ export class ConfigPanel extends LitElement {
@property({ type: Number }) @property({ type: Number })
selectedCount = 0; selectedCount = 0;
/**
* Number of files that will actually be renamed (preview items)
*/
@property({ type: Number })
renameCount = 0;
/** /**
* Number of conflicts detected * Number of conflicts detected
*/ */
@ -171,7 +177,7 @@ export class ConfigPanel extends LitElement {
* @private * @private
*/ */
private handleExecute(): void { private handleExecute(): void {
if (this.selectedCount === 0 || this.disabled || this.executing) { if (this.renameCount === 0 || this.disabled || this.executing) {
return; return;
} }
@ -184,7 +190,7 @@ export class ConfigPanel extends LitElement {
} }
render() { render() {
const canExecute = this.selectedCount > 0 && !this.disabled && !this.executing; const canExecute = this.renameCount > 0 && !this.disabled && !this.executing;
const hasConflicts = this.conflictCount > 0; const hasConflicts = this.conflictCount > 0;
const showExecutionView = this.executing || this.finished; const showExecutionView = this.executing || this.finished;
@ -216,7 +222,7 @@ export class ConfigPanel extends LitElement {
@click=${this.handleExecute} @click=${this.handleExecute}
> >
${this.executing ? I18nService.t('executing') : I18nService.t('execute_rename')} ${this.executing ? I18nService.t('executing') : I18nService.t('execute_rename')}
${this.selectedCount > 0 ? ` (${this.selectedCount})` : ''} ${this.selectedCount > 0 ? ` (${this.renameCount})` : ''}
</button> </button>
`} `}
</div> </div>

查看文件

@ -792,6 +792,7 @@ export class FileSelectorPanel extends LitElement {
<config-panel <config-panel
class="left-panel" class="left-panel"
.selectedCount=${this.selectedFiles.length} .selectedCount=${this.selectedFiles.length}
.renameCount=${this.previewList.length}
.conflictCount=${this.conflictIds.size} .conflictCount=${this.conflictIds.size}
?disabled=${this.loading} ?disabled=${this.loading}
?executing=${this.executing} ?executing=${this.executing}
@ -884,7 +885,7 @@ export class FileSelectorPanel extends LitElement {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
z-index: 10000; z-index: 2147483647;
animation: fadeIn 0.2s ease; animation: fadeIn 0.2s ease;
} }

查看文件

@ -87,7 +87,7 @@ export class FloatingButton {
logger.warn('Shadow DOM not supported, using fallback mount strategy'); logger.warn('Shadow DOM not supported, using fallback mount strategy');
// 降级方案:直接挂载容器 // 降级方案:直接挂载容器
this.container = this.createContainer(); this.container = this.createContainer();
this.container.style.zIndex = '2147483647'; this.container.style.zIndex = '2147483646';
parent.appendChild(this.container); parent.appendChild(this.container);
await this.loadPosition(); await this.loadPosition();
this.applyPosition(); this.applyPosition();
@ -104,7 +104,7 @@ export class FloatingButton {
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 2147483647; z-index: 2147483646;
pointer-events: none; pointer-events: none;
`; `;

查看文件

@ -10,7 +10,7 @@
* 1. Edit version in package.json * 1. Edit version in package.json
* 2. Run: npm run sync:version (or automatically via prebuild/predev) * 2. Run: npm run sync:version (or automatically via prebuild/predev)
* *
* Generated at: 2025-12-29T07:41:42.086Z * Generated at: 2025-12-29T09:07:09.736Z
*/ */
/** /**