style: optimize styles

This commit is contained in:
Michael Yang 2024-10-24 09:59:13 +08:00
parent 5c50019e3b
commit 77899a8b90
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ export class Ai extends AbstractDropdownMenuButton<AiMenu> {
const item = document.createElement("div"); const item = document.createElement("div");
item.classList.add("aie-dropdown-item"); item.classList.add("aie-dropdown-item");
item.innerHTML = ` item.innerHTML = `
<div class="text" style="display: flex;padding: 5px">${this.onDropdownItemRender(i)}</div> <div class="text" style="display: flex;padding: 5px 10px">${this.onDropdownItemRender(i)}</div>
` `
item.addEventListener("click", (evt) => { item.addEventListener("click", (evt) => {
const menuItem = this.menuData[i] as any; const menuItem = this.menuData[i] as any;

View File

@ -494,7 +494,7 @@
padding: 3px 0; padding: 3px 0;
.text { .text {
padding: 2px 0; padding: 2px 10px 0 0;
overflow: hidden; overflow: hidden;
font-size: 14px; font-size: 14px;
display: flex; display: flex;