[IMP] Rawzone modale redimensionnable

This commit is contained in:
2026-05-03 11:44:50 +02:00
parent 63bd83cdce
commit 8eb8a65348
+17 -6
View File
@@ -876,14 +876,26 @@ export default function DNSManager({ apiBase, token, onUnauthorized }) {
{/* Raw Zone Modal */}
{showRaw && (
<div className="modal-overlay" onClick={(e) => e.target === e.currentTarget && setShowRaw(false)}>
<div className="modal" style={{width:720, maxWidth:"96vw"}}>
<div className="modal-header">
<div className="modal" style={{
width:720, maxWidth:"96vw",
resize:"both",
overflow:"auto",
minWidth:400,
minHeight:300,
maxHeight:"95vh",
display:"flex",
flexDirection:"column",
}}>
<div className="modal-header" style={{flexShrink:0}}>
<div className="modal-title">
<span style={{color:"var(--accent)"}}></span> Zone brute {activeZone}
<span style={{fontSize:11,color:"var(--text-3)",marginLeft:8,fontWeight:400}}>
redimensionnable
</span>
</div>
<button className="modal-close" onClick={() => setShowRaw(false)}></button>
</div>
<div className="modal-body" style={{padding:0}}>
<div className="modal-body" style={{padding:0, flex:1, overflow:"hidden", display:"flex", flexDirection:"column"}}>
{rawLoading ? (
<div className="loading" style={{padding:32}}><div className="spinner"/> Chargement</div>
) : (
@@ -892,8 +904,8 @@ export default function DNSManager({ apiBase, token, onUnauthorized }) {
onChange={(e) => setRawContent(e.target.value)}
spellCheck={false}
style={{
flex:1,
width:"100%",
minHeight:420,
background:"var(--bg-0)",
color:"var(--green)",
fontFamily:"var(--font-mono)",
@@ -902,8 +914,7 @@ export default function DNSManager({ apiBase, token, onUnauthorized }) {
border:"none",
outline:"none",
padding:"16px 20px",
resize:"vertical",
borderRadius:"0 0 0 0",
resize:"none",
tabSize:8,
}}
/>