Lots of UI tweaks

This commit is contained in:
Colin Dawson 2026-01-31 23:27:01 +00:00
parent 7ad4f58801
commit c95d7b469c
8 changed files with 219 additions and 185 deletions

View File

@ -1,16 +1,13 @@
@import './_esuiteVariables.scss'; @import "./_esuiteVariables.scss";
.form-editor { .form-editor {
min-width: calc(100vw - ($leftMenuWidth + ($frameWorkAreaPadding * 2) + $spacePadding)); width: 100%;
max-width: calc(100vw - ($leftMenuWidth + ($frameWorkAreaPadding * 2) + $spacePadding));
} }
.mailTemplate-editor { .mailTemplate-editor {
min-width: calc(100vw - ($leftMenuWidth + $gridGap + $mailtemplateNameListWidth + ($frameWorkAreaPadding * 2) + $spacePadding)); width: calc(100% - ($gridGap + $mailtemplateNameListWidth));
max-width: calc(100vw - ($leftMenuWidth + $gridGap + $mailtemplateNameListWidth + ($frameWorkAreaPadding * 2) + $spacePadding));
} }
@media print { @media print {
body { body {
margin: 0 !important; margin: 0 !important;
@ -19,7 +16,7 @@
.ck-main-container { .ck-main-container {
// --ckeditor5-preview-height: 700px; // --ckeditor5-preview-height: 700px;
font-family: 'Lato'; font-family: "Lato";
width: fit-content; width: fit-content;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -35,7 +32,7 @@
} }
.ck-content { .ck-content {
font-family: 'Lato'; font-family: "Lato";
line-height: 1.6; line-height: 1.6;
word-break: break-word; word-break: break-word;
@ -69,7 +66,9 @@
border-right: 0; border-right: 0;
} }
.editor-container_document-editor .editor-container__menu-bar > .ck.ck-menu-bar { .editor-container_document-editor
.editor-container__menu-bar
> .ck.ck-menu-bar {
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-top: 0; border-top: 0;
@ -90,7 +89,9 @@
// height: 100%; // height: 100%;
// } // }
.editor-container_document-editor .editor-container__editor .ck.ck-editor__editable { .editor-container_document-editor
.editor-container__editor
.ck.ck-editor__editable {
box-sizing: border-box; box-sizing: border-box;
//min-width: calc(100vw - ($leftMenuWidth + ($frameWorkAreaPadding * 2))); //min-width: calc(100vw - ($leftMenuWidth + ($frameWorkAreaPadding * 2)));
//max-width: calc(100vw - ($leftMenuWidth + ($frameWorkAreaPadding * 2))); //max-width: calc(100vw - ($leftMenuWidth + ($frameWorkAreaPadding * 2)));
@ -111,7 +112,6 @@
// margin-right: 72px; // margin-right: 72px;
} }
.ck-toolbar { .ck-toolbar {
background: hsl(0, 0%, 100%); background: hsl(0, 0%, 100%);
color: black; color: black;

View File

@ -24,7 +24,6 @@ $frameWorkAreaPadding: 16px;
$mailtemplateNameListWidth: 245px; $mailtemplateNameListWidth: 245px;
//Left Menu //Left Menu
$leftMenuWidth: 70px;
$leftMenu-background: #2c2c2e; $leftMenu-background: #2c2c2e;
$leftMenu-color: #ddd; $leftMenu-color: #ddd;
$leftMenu-HoverColour: $blue; $leftMenu-HoverColour: $blue;

View File

@ -9,12 +9,19 @@
color: $leftMenu-submenu-open !important; color: $leftMenu-submenu-open !important;
} }
.leftMenuContainer {
position: relative;
height: 100%;
}
.leftMenu { .leftMenu {
height: 100%; height: 100%;
width: $leftMenuWidth; width: fit-content;
min-width: 70px;
max-width: 200px;
background-color: $leftMenu-background; background-color: $leftMenu-background;
color: $leftMenu-color; color: $leftMenu-color;
padding-top: 5px; padding: 5px 8px;
} }
.LeftMenuItem { .LeftMenuItem {
@ -51,6 +58,10 @@
.leftMenuItemLabel { .leftMenuItemLabel {
width: 100%; width: 100%;
text-align: center; text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0 8px;
} }
.leftMenuSubMenu { .leftMenuSubMenu {
@ -64,12 +75,14 @@
.subbar { .subbar {
background-color: $leftMenu-background; background-color: $leftMenu-background;
height: 100%; height: 100%;
left: $leftMenuWidth; left: 100%;
position: fixed; position: absolute;
top: $headerHeight; top: 0;
width: 235px; width: 235px;
z-index: 1000; z-index: 1000;
border-left: 1px inset #999; border-left: 1px inset #999;
transform-origin: left;
animation: slideOut 0.3s ease-in-out;
.header { .header {
color: $leftMenu-color; color: $leftMenu-color;
@ -97,3 +110,14 @@
} }
} }
} }
@keyframes slideOut {
from {
transform: scaleX(0);
opacity: 0;
}
to {
transform: scaleX(1);
opacity: 1;
}
}

View File

@ -1,7 +1,16 @@
.horizionalTabs { .horizionalTabs {
.tab-list { .tab-list {
border-bottom: 1px solid #ccc;
padding-left: 0; padding-left: 0;
display: flex;
align-items: bottom;
&::after {
content: "";
flex: 1;
margin-bottom: -1px;
border-bottom: 1px solid;
background-color: inherit;
}
} }
.tab-list-item { .tab-list-item {
@ -12,8 +21,14 @@
} }
.tab-list-active { .tab-list-active {
background-color: white; border: solid;
border: solid #ccc;
border-width: 1px 1px 0 1px; border-width: 1px 1px 0 1px;
background-color: inherit;
}
.tab-list-inactive {
border: solid;
border-width: 0 0 1px 0;
background-color: inherit;
} }
} }

View File

@ -2,7 +2,6 @@
$frameWorkAreaPadding: 16px; $frameWorkAreaPadding: 16px;
//Left Menu //Left Menu
$leftMenuWidth: 70px;
$leftMenu-background: #2c2c2e; $leftMenu-background: #2c2c2e;
$leftMenu-color: #ddd; $leftMenu-color: #ddd;
$leftMenu-HoverColour: $blue; $leftMenu-HoverColour: $blue;

View File

@ -36,7 +36,6 @@ const HorizontalTabs: React.FC<HorizontalTabsProps> = ({
return ( return (
<div className="horizionalTabs"> <div className="horizionalTabs">
<div>
<ul className="tab-list"> <ul className="tab-list">
{children.map((child) => { {children.map((child) => {
const { label } = child.props; const { label } = child.props;
@ -50,8 +49,6 @@ const HorizontalTabs: React.FC<HorizontalTabsProps> = ({
); );
})} })}
</ul> </ul>
</div>
<div>{activeTabChildren}</div> <div>{activeTabChildren}</div>
</div> </div>
); );

View File

@ -15,7 +15,7 @@ export default function TabHeader({
const className = isActive const className = isActive
? "tab-list-item tab-list-active" ? "tab-list-item tab-list-active"
: "tab-list-item"; : "tab-list-item tab-list-inactive";
return ( return (
<li className={className} onClick={handleClick}> <li className={className} onClick={handleClick}>

View File

@ -62,7 +62,7 @@ const LeftMenu: React.FC = () => {
const viewSupport = viewAuditLog || viewBlockedIPAddresses || viewErrorLogs; const viewSupport = viewAuditLog || viewBlockedIPAddresses || viewErrorLogs;
return ( return (
<> <div className="leftMenuContainer">
<div className="leftMenu"> <div className="leftMenu">
<LeftMenuItem to="/" icon={faHome} label={t("Home")} /> <LeftMenuItem to="/" icon={faHome} label={t("Home")} />
@ -124,7 +124,7 @@ const LeftMenu: React.FC = () => {
</div> </div>
{openMenuItem && <div className="subbar">{openMenuItem.children}</div>} {openMenuItem && <div className="subbar">{openMenuItem.children}</div>}
</> </div>
); );
}; };