More code tweaks to finish off tidying up the ui.

This commit is contained in:
Colin Dawson 2026-02-01 23:11:41 +00:00
parent fb595a16bf
commit 2f06dbcb58
7 changed files with 27 additions and 15 deletions

1
.env
View File

@ -1,3 +1,4 @@
NODE_ENV=development NODE_ENV=development
API_URL=http://localhost:3001/api/ API_URL=http://localhost:3001/api/
EXTERNAL_LOGIN=true EXTERNAL_LOGIN=true
CKEDITOR_LICENSE_KEY=GPL

View File

@ -1 +1 @@
window.__RUNTIME_CONFIG__ = {"NODE_ENV":"development","API_URL":"http://localhost:3001/api/","EXTERNAL_LOGIN":"true"}; window.__RUNTIME_CONFIG__ = {"NODE_ENV":"development","API_URL":"http://localhost:3001/api/","EXTERNAL_LOGIN":"true","CKEDITOR_LICENSE_KEY":"GPL"};

View File

@ -6,9 +6,9 @@
grid-gap: $gridGap; grid-gap: $gridGap;
} }
.two-column-grid-1-3 { .two-column-grid {
display: grid; display: grid;
grid-template-columns: 1fr 3fr; grid-template-columns: fit-content(50%) auto;
grid-gap: $gridGap; grid-gap: $gridGap;
} }

View File

@ -5,3 +5,7 @@
.pagination { .pagination {
padding: 0; padding: 0;
} }
.fit-content-width {
width: fit-content;
}

View File

@ -16,6 +16,12 @@ const EnvPage: React.FC = () => {
window.__RUNTIME_CONFIG__.EXTERNAL_LOGIN ={" "} window.__RUNTIME_CONFIG__.EXTERNAL_LOGIN ={" "}
{window.__RUNTIME_CONFIG__.EXTERNAL_LOGIN ? "true" : "false"} {window.__RUNTIME_CONFIG__.EXTERNAL_LOGIN ? "true" : "false"}
</p> </p>
<p>
window.__RUNTIME_CONFIG__?.CKEDITOR_LICENSE_KEY ={" "}
{window.__RUNTIME_CONFIG__?.CKEDITOR_LICENSE_KEY === "GPL"
? "GPL"
: "hidden"}
</p>
</> </>
); );
}; };

View File

@ -51,8 +51,8 @@ const MailTemplatesTab: React.FC = () => {
return ( return (
<Loading loaded={loaded}> <Loading loaded={loaded}>
<div className="two-column-grid-1-3"> <div className="two-column-grid">
<div> <div className="fit-content-width">
<ul className="mail-types"> <ul className="mail-types">
{types.map((x) => { {types.map((x) => {
return ( return (

View File

@ -6,6 +6,7 @@ declare global {
NODE_ENV: string; NODE_ENV: string;
API_URL: string; API_URL: string;
EXTERNAL_LOGIN: boolean; EXTERNAL_LOGIN: boolean;
CKEDITOR_LICENSE_KEY?: string;
}; };
} }
} }