Enhance styling consistency and alignment in Admin Panel

Centered elements in the Admin Panel using `justifyItems: "center"`. Adjusted input padding, font size, and primary button styling for improved layout and usability.
This commit is contained in:
2026-02-06 12:56:59 +01:00
parent b830428251
commit bfb1df8e59
2 changed files with 12 additions and 5 deletions

View File

@@ -137,7 +137,14 @@ export default function AdminPanel() {
</button> </button>
</div> </div>
<div style={{ marginTop: 12, display: "grid", gap: 8 }}> <div
style={{
marginTop: 12,
display: "grid",
gap: 8,
justifyItems: "center", // <<< zentriert alles
}}
>
<input <input
value={displayName} value={displayName}
onChange={(e) => setDisplayName(e.target.value)} onChange={(e) => setDisplayName(e.target.value)}

View File

@@ -122,13 +122,13 @@ export const styles = {
input: { input: {
width: "100%", width: "100%",
padding: 10, padding: "10px 12px",
borderRadius: 12, borderRadius: 14,
border: `1px solid rgba(233,216,166,0.18)`, border: `1px solid rgba(233,216,166,0.18)`,
background: "rgba(10,10,12,0.55)", background: "rgba(10,10,12,0.55)",
color: stylesTokens.textMain, color: stylesTokens.textMain,
outline: "none", outline: "none",
fontSize: 16, fontSize: 15,
}, },
primaryBtn: { primaryBtn: {
@@ -197,7 +197,7 @@ export const styles = {
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
justifyContent: "center", justifyContent: "center",
padding: 16, padding: 12,
zIndex: 2147483647, // wirklich ganz oben zIndex: 2147483647, // wirklich ganz oben
background: "rgba(0,0,0,0.72)", background: "rgba(0,0,0,0.72)",
overflowY: "auto", overflowY: "auto",