Style buttons
This commit is contained in:
parent
b5d9631b66
commit
ccc429e258
@ -199,30 +199,48 @@ function Diagram() {
|
|||||||
return (
|
return (
|
||||||
<div style={{ width: '100vw', height: '100vh' }}>
|
<div style={{ width: '100vw', height: '100vh' }}>
|
||||||
<div style={{ position: 'absolute', zIndex: 10, right: 10, top: 10 }}>
|
<div style={{ position: 'absolute', zIndex: 10, right: 10, top: 10 }}>
|
||||||
<div style={{ display: 'inline-block', marginRight: 8 }}>
|
<div style={{ position: 'relative', display: 'inline-block', marginRight: 8 }}>
|
||||||
<label style={{ fontWeight: 'bold', marginRight: 4 }}>Diagram: </label>
|
|
||||||
<select
|
<select
|
||||||
value={diagramName || ''}
|
value={diagramName || ''}
|
||||||
onChange={(e) => setDiagramName(e.target.value)}
|
onChange={(e) => setDiagramName(e.target.value)}
|
||||||
|
className="btn"
|
||||||
style={{
|
style={{
|
||||||
padding: '6px 10px',
|
padding: '10px 16px',
|
||||||
borderRadius: '8px',
|
height: 48,
|
||||||
border: '1px solid #aaa',
|
fontSize: 16,
|
||||||
background: 'black',
|
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
minWidth: 120,
|
borderRadius: '12px',
|
||||||
|
border: 'none',
|
||||||
|
background: '#111',
|
||||||
|
color: 'white',
|
||||||
|
cursor: 'pointer',
|
||||||
|
appearance: 'none',
|
||||||
|
width: 180,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{diagramList.map((name) => (
|
{diagramList.map((name) => (
|
||||||
<option key={name} value={name}>
|
<option key={name} value={name} style={{ color: 'white' }}>
|
||||||
📌 {name}
|
📌 {name}
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
right: 16,
|
||||||
|
top: '50%',
|
||||||
|
transform: 'translateY(-50%)',
|
||||||
|
pointerEvents: 'none',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
⏷
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
className="btn"
|
className="btn"
|
||||||
|
style={{ marginLeft: 8, background: '#d28519', color: 'white' }}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const newName = prompt("Enter new diagram name:");
|
const newName = prompt("Enter new diagram name:");
|
||||||
if (newName) {
|
if (newName) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user