@@ -19,9 +19,9 @@ interface ItemEditorProps {
1919export function ItemEditor ( { slot, item, serverVersion, onChange, onRemove } : ItemEditorProps ) {
2020 if ( item === undefined ) {
2121 return (
22- < p className = "item-editor-content " >
22+ < div className = "item-editor-notice " >
2323 Slot { slot } is empty. Drop a material on it, or pick one from the palette.
24- </ p >
24+ </ div >
2525 ) ;
2626 }
2727
@@ -51,7 +51,7 @@ export function ItemEditor({ slot, item, serverVersion, onChange, onRemove }: It
5151
5252 < div className = "item-editor-section" >
5353 < div className = "editor-field" >
54- < span > Material</ span >
54+ < span className = "item-label" > Material</ span >
5555 < MaterialSelector
5656 material = { item . material }
5757 serverVersion = { serverVersion }
@@ -60,9 +60,10 @@ export function ItemEditor({ slot, item, serverVersion, onChange, onRemove }: It
6060 </ div >
6161
6262 < div className = "editor-field" >
63- < label htmlFor = "item-amount" > Amount</ label >
63+ < label className = "item-label" htmlFor = "item-amount" > Amount</ label >
6464 < input
6565 id = "item-amount"
66+ className = "item-input"
6667 type = "number"
6768 min = { 1 }
6869 max = { 64 }
@@ -73,9 +74,10 @@ export function ItemEditor({ slot, item, serverVersion, onChange, onRemove }: It
7374
7475 { item . material === 'PLAYER_HEAD' && (
7576 < div className = "editor-field" >
76- < label htmlFor = "item-head" > Head texture</ label >
77+ < label className = "item-label" htmlFor = "item-head" > Head texture</ label >
7778 < input
7879 id = "item-head"
80+ className = "item-input"
7981 value = { typeof item . value === 'string' ? item . value : '' }
8082 onChange = { event => update ( { value : event . target . value } ) }
8183 />
@@ -86,7 +88,7 @@ export function ItemEditor({ slot, item, serverVersion, onChange, onRemove }: It
8688
8789 < div className = "item-editor-section" >
8890 < div className = "editor-field" >
89- < label htmlFor = "item-name " > Name</ label >
91+ < span className = "item-label " > Name</ span >
9092 < FormattedInput
9193 ariaLabel = "Item name"
9294 value = { typeof item . name === 'string' ? item . name : '' }
@@ -95,7 +97,7 @@ export function ItemEditor({ slot, item, serverVersion, onChange, onRemove }: It
9597 </ div >
9698
9799 < div className = "editor-field" >
98- < label htmlFor = "item-lore " > Lore</ label >
100+ < span className = "item-label " > Lore</ span >
99101 < FormattedInput
100102 ariaLabel = "Item lore"
101103 multiline
0 commit comments