style: optimize styles
This commit is contained in:
parent
5c50019e3b
commit
77899a8b90
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue