chore: squash down to 3.7.3

This commit is contained in:
AdenMGB committed 2026-09-07 10:39:10 +09:30
1 parent 7a8a3cb70e
commit 6d33ef88aa
8 files changed
+180 -9

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "betterseqtaplus",
"version": "3.7.4",
"version": "3.7.3",
"type": "module",
"description": "Enhance SEQTA Learn's usability and aesthetics! A fork of BetterSEQTA to continue development and add heaps more features!",
"browserslist": "> 0.5%, last 2 versions, not dead",
+133
View File
@@ -0,0 +1,133 @@
/* Sidebar on the right edge — layout, drill direction, and mirrored accents. */
body.bsplus-sidebar-right {
#menu {
left: auto !important;
right: 0 !important;
width: var(--bsplus-sidebar-width, 270px) !important;
overflow: visible !important;
}
#content {
left: 0 !important;
right: var(--bsplus-sidebar-width, 270px) !important;
transition:
right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.4s ease !important;
}
/* Sub panels open to the left of the menu — anchor to menu edge, not viewport. */
#menu .sub {
left: auto !important;
right: 100% !important;
width: var(--bsplus-sidebar-width, 270px) !important;
}
/* Title bar spans the full viewport; only page content respects sidebar inset. */
#container #content #title,
#title {
left: 0 !important;
right: 0 !important;
width: 100% !important;
max-width: none !important;
}
&.icon-only-sidebar:not(:has(#menu li.hasChildren:is(.active, .bsplus-active))) {
#menu {
width: 70px !important;
}
#content {
right: 70px !important;
}
#menu .sub {
right: 100% !important;
width: var(--bsplus-sidebar-width, 270px) !important;
}
}
&:has(#menu.bsplus-styled-sidebar) #container #content #title,
&.menuShown:has(#menu.bsplus-styled-sidebar) #container #content #title {
box-shadow: -6px 0 8px -4px rgb(0 0 0 / 0.25) !important;
}
#menu.bsplus-styled-sidebar {
&.bsplus-sidebar-indicator-bar:not(.bsplus-sidebar-style-strip) {
> ul > li.item.active:not(.hasChildren)::after,
.sub li.item.active:not(.hasChildren)::after {
left: auto !important;
right: 0 !important;
}
}
&.bsplus-sidebar-style-strip {
> ul > li.item.active:not(.hasChildren)::after,
.sub li.item.active:not(.hasChildren)::after {
left: auto !important;
right: 0 !important;
}
}
}
#menu li:is(.active, .hasChildren.bsplus-active) > .sub > ul > .item:not(.hasChildren)::before {
left: auto !important;
right: 0 !important;
border-radius: 0 8px 8px 0 !important;
}
}
@media (max-width: 900px) {
body.bsplus-sidebar-right {
#menu {
left: auto !important;
right: 0 !important;
transform: translateX(var(--bsplus-sidebar-width, 270px)) !important;
}
&.menuShown #menu {
transform: translateX(0) !important;
}
#content {
left: 0 !important;
right: 0 !important;
}
&.menuShown #content {
transform: translateX(calc(-1 * var(--bsplus-sidebar-width, 270px))) !important;
}
&.icon-only-sidebar:not(:has(#menu li.hasChildren:is(.active, .bsplus-active))) {
#menu {
transform: translateX(70px) !important;
}
&.menuShown #content {
transform: translateX(-70px) !important;
}
}
#menuToggle {
left: auto !important;
right: 8px !important;
}
#container #content #title,
#title {
left: 0 !important;
right: 0 !important;
width: 100% !important;
}
/* Counter `#content` slide so the fixed title stays viewport-wide. */
&.menuShown #container #content #title {
transform: translateX(var(--bsplus-sidebar-width, 270px)) !important;
}
&.icon-only-sidebar.menuShown #container #content #title {
transform: translateX(70px) !important;
}
}
}
@@ -13,6 +13,7 @@
normalizeSidebarRadius,
normalizeSidebarStyleId,
normalizeSidebarWidth,
normalizeSidebarPosition,
SIDEBAR_STYLES,
type SidebarStyleId,
} from "@/seqta/ui/sidebar/sidebarStyles";
@@ -36,6 +37,9 @@
normalizeSidebarIndicator($settingsState.sidebarActiveIndicator),
);
const width = $derived(normalizeSidebarWidth($settingsState.sidebarWidth));
const position = $derived(
normalizeSidebarPosition($settingsState.sidebarPosition),
);
const radius = $derived(
normalizeSidebarRadius(
$settingsState.sidebarCornerRadius ?? DEFAULT_SIDEBAR_RADIUS,
@@ -170,6 +174,23 @@
</div>
</div>
<div class="row">
<div class="copy">
<h3 class="row-title">Sidebar Position</h3>
<p class="row-desc">Which edge of the screen the navigation sits on</p>
</div>
<div class="control">
<Select
value={position}
onChange={(value) => (settingsState.sidebarPosition = value)}
options={[
{ value: "left", label: "Left" },
{ value: "right", label: "Right" },
]}
/>
</div>
</div>
<div class="row">
<div class="copy">
<h3 class="row-title">Sidebar Width</h3>
@@ -38,7 +38,7 @@
<SettingRow {...option} {searchQuery} />
{/each}
{#if !isEngage && matchesSearch(searchQuery, "Sidebar Style", "Item Size", "Corner Radius", "Active Indicator", "Sidebar Width", "Transparency Effects", "Blur Strength")}
{#if !isEngage && matchesSearch(searchQuery, "Sidebar Style", "Item Size", "Corner Radius", "Active Indicator", "Sidebar Position", "Sidebar Width", "Transparency Effects", "Blur Strength")}
<div class="border-none">
<SidebarAppearance />
</div>
+20 -1
View File
@@ -13,6 +13,7 @@ export type SidebarStyleId =
export type SidebarDensity = "compact" | "comfortable" | "large";
export type SidebarActiveIndicator = "fill" | "bar" | "outline" | "underline";
export type SidebarWidth = "narrow" | "default" | "wide";
export type SidebarPosition = "left" | "right";
export type SidebarStyleDef = {
id: SidebarStyleId;
@@ -37,6 +38,7 @@ export const DEFAULT_SIDEBAR_STYLE: SidebarStyleId = "classic";
export const DEFAULT_SIDEBAR_DENSITY: SidebarDensity = "comfortable";
export const DEFAULT_SIDEBAR_INDICATOR: SidebarActiveIndicator = "fill";
export const DEFAULT_SIDEBAR_WIDTH: SidebarWidth = "default";
export const DEFAULT_SIDEBAR_POSITION: SidebarPosition = "left";
export const DEFAULT_SIDEBAR_RADIUS = 12;
export const DEFAULT_SIDEBAR_BLUR = 50;
@@ -78,6 +80,9 @@ export const normalizeSidebarIndicator = (v: unknown) =>
export const normalizeSidebarWidth = (v: unknown) =>
oneOf(v, ["narrow", "default", "wide"] as const, DEFAULT_SIDEBAR_WIDTH);
export const normalizeSidebarPosition = (v: unknown) =>
oneOf(v, ["left", "right"] as const, DEFAULT_SIDEBAR_POSITION);
export const normalizeSidebarRadius = (v: unknown) =>
clampInt(v, 0, 24, DEFAULT_SIDEBAR_RADIUS);
@@ -119,6 +124,15 @@ export function applySidebarStyleClass(
);
}
/** Apply left/right placement on `body` and drill slide direction vars. */
export function applySidebarPosition() {
const position = normalizeSidebarPosition(settingsState.sidebarPosition);
document.body.classList.toggle("bsplus-sidebar-right", position === "right");
const root = document.documentElement;
root.style.setProperty("--bsplus-slide-off", position === "right" ? "320px" : "-320px");
root.style.setProperty("--bsplus-slide-off-compact", position === "right" ? "70px" : "-70px");
}
/** Safe to call with no menu (still sets width/blur/radius on `:root`). */
let lastSidebarLookKey = "";
@@ -133,7 +147,9 @@ export function applySidebarLook(
? 0
: normalizeSidebarBlur(settingsState.sidebarBlur);
const lookKey = `${density}|${indicator}|${width}|${radius}|${blur}`;
applySidebarPosition();
const lookKey = `${density}|${indicator}|${width}|${radius}|${blur}|${normalizeSidebarPosition(settingsState.sidebarPosition)}`;
if (lookKey === lastSidebarLookKey) return;
lastSidebarLookKey = lookKey;
@@ -157,6 +173,9 @@ export function clearSidebarAppearance(menu: HTMLElement | null | undefined) {
root.style.removeProperty("--bsplus-sidebar-width");
root.style.removeProperty("--bsplus-sidebar-radius");
root.style.removeProperty("--bsplus-sidebar-blur");
root.style.removeProperty("--bsplus-slide-off");
root.style.removeProperty("--bsplus-slide-off-compact");
document.body.classList.remove("bsplus-sidebar-right");
if (!menu) return;
clearPrefixed(menu, STYLE_CLASS_PREFIX);
clearPrefixed(menu, DENSITY_CLASS_PREFIX);
+1 -6
View File
@@ -5,7 +5,7 @@ export type WhatsNewRelease = {
export const WHATS_NEW_CHANGELOG: WhatsNewRelease[] = [
{
"title": "3.7.4 – Performance Mode & various fixes",
"title": "3.7.3 – Performance Mode, Timetable sync into Calendars, Sidebar Customisation, new loading animations & Bugfix Bundle",
"items": [
"Added Performance Mode in General settings dramatically improving performance with little sacrifice to looks.",
"Fixed custom background images and videos not uploading.",
@@ -17,11 +17,6 @@ export const WHATS_NEW_CHANGELOG: WhatsNewRelease[] = [
"Added a one-time prompt to re-enable BetterSEQTA features after the Courses and Assessments fix.",
"Fixed feedback modal not scrolling on long bug reports and replies.",
"Fixed the look and feel of the sidebar to be more like how it used to be.",
]
},
{
"title": "3.7.3 – Timetable sync into Calendars, Sidebar Customisation, new loading animations & Bugfix Bundle",
"items": [
"Added a few new loading screens you will see when opening SEQTA with BetterSEQTA",
"Added an option in the Timetable to sync to Google Calendar and Outlook Calendar",
"Added a new sidebar customisation page in the settings menu to change the sidebar layout, icons, and more.",
+1
View File
@@ -70,6 +70,7 @@ export function getDefaultSettingsState(): SettingsState {
sidebarCornerRadius: 12,
sidebarActiveIndicator: "fill",
sidebarWidth: "default",
sidebarPosition: "left",
sidebarBlur: 50,
adaptiveThemeColour: false,
adaptiveThemeGradient: false,
+2
View File
@@ -84,6 +84,8 @@ export interface SettingsState {
sidebarActiveIndicator?: string;
/** Sidebar width: `narrow` | `default` (270px) | `wide`. */
sidebarWidth?: string;
/** Sidebar edge: `left` (default) | `right`. */
sidebarPosition?: string;
/** Backdrop blur strength in px when transparency is on (default `50`). */
sidebarBlur?: number;
adaptiveThemeColour?: boolean;