fix: tighten mana panel layout and icon sizing
Adjust the inventory mana panel to fit beside the backpack column without overlap, prevent the panel from scrolling, shrink composite icons correctly, and refine mana-state derivation using existing item spell data.
This commit is contained in:
parent
63ea242167
commit
dc7b26676d
3 changed files with 146 additions and 23 deletions
|
|
@ -735,7 +735,7 @@ body.noselect, body.noselect * {
|
|||
position: fixed;
|
||||
top: 100px;
|
||||
left: 400px;
|
||||
width: 540px;
|
||||
width: 548px;
|
||||
height: 520px;
|
||||
background: rgba(20, 20, 20, 0.92);
|
||||
backdrop-filter: blur(2px);
|
||||
|
|
@ -762,7 +762,7 @@ body.noselect, body.noselect * {
|
|||
display: flex;
|
||||
justify-content: flex-start;
|
||||
height: 264px;
|
||||
gap: 8px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.inv-equipment-grid {
|
||||
|
|
@ -808,13 +808,14 @@ body.noselect, body.noselect * {
|
|||
}
|
||||
|
||||
.inv-sidebar {
|
||||
width: 60px;
|
||||
width: 54px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
overflow: visible;
|
||||
flex-shrink: 0;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.inv-burden-bar {
|
||||
|
|
@ -868,6 +869,7 @@ body.noselect, body.noselect * {
|
|||
justify-content: center;
|
||||
background: #000;
|
||||
flex-shrink: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.inv-pack-icon.active {
|
||||
|
|
@ -911,7 +913,7 @@ body.noselect, body.noselect * {
|
|||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 10px;
|
||||
margin-top: 8px;
|
||||
margin-right: 0;
|
||||
overflow: hidden;
|
||||
min-height: 0;
|
||||
|
|
@ -930,6 +932,7 @@ body.noselect, body.noselect * {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.inv-item-grid {
|
||||
|
|
@ -941,23 +944,24 @@ body.noselect, body.noselect * {
|
|||
padding: 4px;
|
||||
border: 1px solid var(--ac-border-light);
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
overflow-y: hidden;
|
||||
min-height: 0;
|
||||
align-content: start;
|
||||
justify-content: start;
|
||||
}
|
||||
|
||||
.inv-mana-panel {
|
||||
width: 150px;
|
||||
min-width: 150px;
|
||||
width: 162px;
|
||||
min-width: 162px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: rgba(6, 10, 18, 0.92);
|
||||
border: 1px solid var(--ac-border-light);
|
||||
padding: 4px;
|
||||
padding: 3px;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
height: 260px;
|
||||
flex-shrink: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.inv-mana-header {
|
||||
|
|
@ -970,20 +974,20 @@ body.noselect, body.noselect * {
|
|||
|
||||
.inv-mana-summary {
|
||||
color: var(--ac-text-dim);
|
||||
font-size: 10px;
|
||||
font-size: 9px;
|
||||
line-height: 1.2;
|
||||
padding: 4px 0;
|
||||
padding: 2px 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.08);
|
||||
margin-bottom: 4px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.inv-mana-list {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.inv-mana-row {
|
||||
|
|
@ -994,7 +998,8 @@ body.noselect, body.noselect * {
|
|||
align-items: center;
|
||||
background: rgba(18, 24, 34, 0.9);
|
||||
border: 1px solid rgba(255,255,255,0.08);
|
||||
padding: 2px 3px;
|
||||
padding: 1px 2px;
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
.inv-mana-icon {
|
||||
|
|
@ -1008,11 +1013,30 @@ body.noselect, body.noselect * {
|
|||
height: 16px;
|
||||
}
|
||||
|
||||
.inv-mana-icon .inventory-slot.mana-slot {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.inv-mana-icon .inventory-slot.mana-slot .item-icon-composite {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.inv-mana-icon .inventory-slot.mana-slot .icon-underlay,
|
||||
.inv-mana-icon .inventory-slot.mana-slot .icon-base,
|
||||
.inv-mana-icon .inventory-slot.mana-slot .icon-overlay {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.inv-mana-name {
|
||||
color: #f2e6c9;
|
||||
font-size: 9px;
|
||||
line-height: 1.05;
|
||||
word-break: break-word;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
|
@ -1034,6 +1058,7 @@ body.noselect, body.noselect * {
|
|||
grid-column: 3;
|
||||
grid-row: 2;
|
||||
text-align: right;
|
||||
min-width: 34px;
|
||||
}
|
||||
|
||||
.inv-mana-state-dot {
|
||||
|
|
@ -2407,12 +2432,12 @@ table.ts-allegiance td:first-child {
|
|||
border: 2px solid #8a7a44 !important;
|
||||
background: #0e0c08 !important;
|
||||
resize: none !important;
|
||||
width: 540px !important;
|
||||
width: 548px !important;
|
||||
}
|
||||
|
||||
.inv-top-section {
|
||||
justify-content: flex-start !important;
|
||||
gap: 8px !important;
|
||||
gap: 10px !important;
|
||||
}
|
||||
|
||||
.inv-bottom-section {
|
||||
|
|
@ -2421,11 +2446,12 @@ table.ts-allegiance td:first-child {
|
|||
}
|
||||
|
||||
.inv-mana-panel {
|
||||
width: 150px !important;
|
||||
min-width: 150px !important;
|
||||
height: 100% !important;
|
||||
width: 162px !important;
|
||||
min-width: 162px !important;
|
||||
height: 260px !important;
|
||||
background: #111014 !important;
|
||||
border: 1px solid #5a4a24 !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.inv-mana-header {
|
||||
|
|
@ -2444,7 +2470,7 @@ table.ts-allegiance td:first-child {
|
|||
grid-template-columns: 18px 1fr 14px !important;
|
||||
grid-template-rows: auto auto !important;
|
||||
gap: 1px 4px !important;
|
||||
padding: 2px 3px !important;
|
||||
padding: 1px 2px !important;
|
||||
background: #1a1208 !important;
|
||||
border: 1px solid #3a2818 !important;
|
||||
}
|
||||
|
|
@ -2460,9 +2486,20 @@ table.ts-allegiance td:first-child {
|
|||
height: 16px !important;
|
||||
}
|
||||
|
||||
.inv-mana-icon .inventory-slot.mana-slot .item-icon-composite,
|
||||
.inv-mana-icon .inventory-slot.mana-slot .icon-underlay,
|
||||
.inv-mana-icon .inventory-slot.mana-slot .icon-base,
|
||||
.inv-mana-icon .inventory-slot.mana-slot .icon-overlay {
|
||||
width: 14px !important;
|
||||
height: 14px !important;
|
||||
}
|
||||
|
||||
.inv-mana-name {
|
||||
font-size: 9px !important;
|
||||
line-height: 1.05 !important;
|
||||
white-space: nowrap !important;
|
||||
overflow: hidden !important;
|
||||
text-overflow: ellipsis !important;
|
||||
}
|
||||
|
||||
.inv-mana-value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue