fix: restore layout after vite upgrade

Signed-off-by: hazre <[email protected]>
This commit is contained in:
Erwan Leboucher authored and hazre committed 2026-07-31 20:57:37 +02:00
1 parent 45ec7dbc5a
commit 0302fd38d4
9 files changed
+215 -203

No files matched your search

-1
View File
@@ -117,7 +117,6 @@ export function SettingsShell<Id extends string>({
key={id}
variant="Background"
radii="400"
style={{ padding: `0 ${config.space.S400}` }}
aria-pressed={isActive}
before={settingsNavIcon(IconComponent, isActive)}
onClick={() => onSelect(id)}
@@ -118,7 +118,7 @@ export const MessageBase = recipe({
minHeight: toRem(16),
contain: 'layout',
flexGrow: '1',
width: '100',
width: '100%',
},
],
variants: {
+8 -8
View File
@@ -37,8 +37,8 @@ export const PageNavBox = style({
export const PageNavHeader = recipe({
base: {
paddingRight: `${config.space.S200} !important`,
paddingLeft: `${config.space.S300} !important`,
paddingRight: config.space.S200,
paddingLeft: config.space.S300,
flexShrink: 0,
selectors: {
'button&': {
@@ -102,16 +102,16 @@ export type PageHeaderVariants = RecipeVariants<typeof PageHeader>;
export const PageContent = style([
DefaultReset,
{
paddingTop: `${config.space.S400} !important`,
paddingLeft: `${config.space.S400} !important`,
paddingBottom: `${toRem(100)} !important`,
paddingTop: config.space.S400,
paddingLeft: config.space.S400,
paddingBottom: toRem(100),
},
]);
export const PageHeroEmpty = style([
DefaultReset,
{
padding: `${config.space.S400} !important`,
padding: config.space.S400,
borderRadius: config.radii.R400,
minHeight: toRem(450),
},
@@ -120,7 +120,7 @@ export const PageHeroEmpty = style([
export const PageHeroSection = style([
DefaultReset,
{
padding: '40px 0 !important',
padding: '40px 0',
maxWidth: toRem(466),
width: '100%',
margin: 'auto',
@@ -132,7 +132,7 @@ export const PageContentCenter = style([
{
maxWidth: toRem(964),
width: '100%',
margin: 'auto !important',
margin: 'auto',
},
]);
+6 -6
View File
@@ -26,8 +26,8 @@ export const SidebarStack = style([
justifyContent: 'center',
alignItems: 'center',
gap: config.space.S300,
padding: `${config.space.S300} 0 !important`,
paddingBottom: `${config.space.S200} !important`,
padding: `${config.space.S300} 0`,
paddingBottom: config.space.S200,
},
]);
@@ -229,7 +229,7 @@ export const SidebarAvatar = recipe({
},
outlined: {
true: {
border: `${config.borderWidth.B300} solid ${color.Background.ContainerLine} !important`,
border: `${config.borderWidth.B300} solid ${color.Background.ContainerLine}`,
},
},
},
@@ -243,7 +243,7 @@ export const SidebarFolder = recipe({
base: [
ContainerColor({ variant: 'Background' }),
{
padding: `${config.space.S100} !important`,
padding: config.space.S100,
width: toRem(42),
minHeight: toRem(42),
display: 'flex',
@@ -267,8 +267,8 @@ export const SidebarFolder = recipe({
borderRadius: config.radii.R400,
},
Open: {
paddingLeft: '0 !important',
paddingRight: '0 !important',
paddingLeft: 0,
paddingRight: 0,
flexDirection: 'column',
alignItems: 'center',
gap: config.space.S200,
+2 -2
View File
@@ -114,7 +114,7 @@ export function Room() {
return (
<PowerLevelsContextProvider value={powerLevels}>
<RoomAbbreviationsContext.Provider value={abbreviations}>
<Box grow="Yes" style={{ position: 'relative', minWidth: 0 }}>
<Box grow="Yes" style={{ position: 'relative', minWidth: 0, width: '100%' }}>
{callView && (screenSize === ScreenSize.Desktop || !chat) && (
<Page>
<RoomViewHeader callView />
@@ -126,7 +126,7 @@ export function Room() {
{!callView && (
<Box grow="Yes" direction="Column">
<RoomViewHeader />
<Box grow="Yes">
<Box grow="Yes" style={{ minWidth: 0, minHeight: 0, width: '100%' }}>
<RoomView eventId={eventId} />
</Box>
</Box>
+3 -1
View File
@@ -1184,7 +1184,7 @@ export function RoomTimeline({
}, [room.roomId, timelineSync.eventsLength, timelineSync.backwardStatus]);
return (
<Box grow="Yes" style={{ position: 'relative', minWidth: 0 }}>
<Box grow="Yes" style={{ position: 'relative', minWidth: 0, minHeight: 0, width: '100%' }}>
{(hideTimelineForRoomState || (roomSyncLoading && timelineSync.eventsLength === 0)) && (
<Box
justifyContent="Center"
@@ -1222,6 +1222,7 @@ export function RoomTimeline({
style={{
flex: 1,
minHeight: 0,
width: '100%',
overflow: 'hidden',
position: 'relative',
opacity: !hideTimelineForRoomState && (isReady || showLoadingPlaceholders) ? 1 : 0,
@@ -1236,6 +1237,7 @@ export function RoomTimeline({
style={{
flex: 1,
minHeight: 0,
width: '100%',
display: 'flex',
flexDirection: 'column',
paddingTop: topSpacerHeight > 0 ? topSpacerHeight : config.space.S600,
+8 -1
View File
@@ -149,7 +149,14 @@ export function RoomView({ eventId }: { eventId?: string }) {
return (
<Page
ref={roomViewRef}
style={{ position: 'relative', overflow: 'hidden', isolation: 'isolate', minWidth: 0 }}
style={{
position: 'relative',
overflow: 'hidden',
isolation: 'isolate',
minWidth: 0,
minHeight: 0,
width: '100%',
}}
>
<SwipeableChatWrapper onOpenMembers={handleOpenMembers}>
<Box grow="Yes" direction="Column">
+187 -182
View File
@@ -1,210 +1,215 @@
@import '@sableclient/twemoji-font';
@import 'folds/dist/style.css' layer(folds);
:root {
--tc-link: hsl(213deg 100% 45%);
@layer folds, sable-reset;
/* user mxid colors */
--mx-uc-1: hsl(208, 100%, 45%);
--mx-uc-2: hsl(302, 100%, 30%);
--mx-uc-3: hsl(163, 100%, 30%);
--mx-uc-4: hsl(343, 100%, 45%);
--mx-uc-5: hsl(24, 100%, 45%);
--mx-uc-6: hsl(181, 100%, 30%);
--mx-uc-7: hsl(242, 100%, 45%);
--mx-uc-8: hsl(94, 100%, 35%);
@layer sable-reset {
:root {
--tc-link: hsl(213deg 100% 45%);
--font-emoji: 'Twemoji_DISABLED';
--font-secondary: 'Nunito Variable', var(--font-emoji), sans-serif;
--font-monospace: 'Space Mono', monospace;
}
/* user mxid colors */
--mx-uc-1: hsl(208, 100%, 45%);
--mx-uc-2: hsl(302, 100%, 30%);
--mx-uc-3: hsl(163, 100%, 30%);
--mx-uc-4: hsl(343, 100%, 45%);
--mx-uc-5: hsl(24, 100%, 45%);
--mx-uc-6: hsl(181, 100%, 30%);
--mx-uc-7: hsl(242, 100%, 45%);
--mx-uc-8: hsl(94, 100%, 35%);
.dark-theme,
.sable-remote-kind-dark {
--tc-link: hsl(213deg 100% 80%);
--font-emoji: 'Twemoji_DISABLED';
--font-secondary: 'Nunito Variable', var(--font-emoji), sans-serif;
--font-monospace: 'Space Mono', monospace;
}
--mx-uc-1: hsl(260, 100%, 75%);
--mx-uc-2: hsl(320, 100%, 75%);
--mx-uc-3: hsl(180, 100%, 65%);
--mx-uc-4: hsl(150, 100%, 70%);
--mx-uc-5: hsl(200, 100%, 75%);
--mx-uc-6: hsl(280, 80%, 70%);
--mx-uc-7: hsl(40, 100%, 75%);
--mx-uc-8: hsl(0, 100%, 75%);
.dark-theme,
.sable-remote-kind-dark {
--tc-link: hsl(213deg 100% 80%);
--font-secondary: 'Nunito Variable', var(--font-emoji), sans-serif;
--font-monospace: 'Space Mono', monospace;
}
--mx-uc-1: hsl(260, 100%, 75%);
--mx-uc-2: hsl(320, 100%, 75%);
--mx-uc-3: hsl(180, 100%, 65%);
--mx-uc-4: hsl(150, 100%, 70%);
--mx-uc-5: hsl(200, 100%, 75%);
--mx-uc-6: hsl(280, 80%, 70%);
--mx-uc-7: hsl(40, 100%, 75%);
--mx-uc-8: hsl(0, 100%, 75%);
html {
height: 100%;
overflow: hidden;
overscroll-behavior: none;
}
--font-secondary: 'Nunito Variable', var(--font-emoji), sans-serif;
--font-monospace: 'Space Mono', monospace;
}
body {
margin: 0;
padding: 0;
height: 100%;
font-family: var(--font-secondary);
font-size: 16px;
font-weight: 400;
/* eslint-disable-next-line css/no-invalid-properties */
background-color: var(--sable-bg-container);
}
#root {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
html {
height: 100%;
overflow: hidden;
overscroll-behavior: none;
}
@media (display-mode: standalone) {
@supports (-webkit-touch-callout: none) {
html,
body,
#root {
height: var(--sable-ios-pwa-viewport-height, 100dvh);
body {
margin: 0;
padding: 0;
height: 100%;
font-family: var(--font-secondary);
font-size: 16px;
font-weight: 400;
/* eslint-disable-next-line css/no-invalid-properties */
background-color: var(--sable-bg-container);
}
#root {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
@media (display-mode: standalone) {
@supports (-webkit-touch-callout: none) {
html,
body,
#root {
height: var(--sable-ios-pwa-viewport-height, 100dvh);
}
}
}
}
*,
*::before,
*::after {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
}
a {
color: var(--tc-link);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
*,
*::before,
*::after {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
}
a {
color: var(--tc-link);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
[data-mx-spoiler][aria-pressed='true'] a {
color: transparent;
pointer-events: none;
}
[data-mx-spoiler][aria-pressed='true'] a {
color: transparent;
pointer-events: none;
}
b {
font-weight: 500;
}
label {
margin: 0;
padding: 0;
}
button,
textarea {
margin: 0;
padding: 0;
background-color: transparent;
color: inherit;
/* eslint-disable-next-line css/font-family-fallbacks */
font-family: inherit;
font-size: inherit;
font-weight: inherit;
line-height: inherit;
letter-spacing: inherit;
border: none;
}
button {
max-width: 100%;
text-transform: none;
text-align: inherit;
overflow: visible;
-webkit-appearance: button;
}
textarea,
input,
input[type],
input[type='text'],
input[type='username'],
input[type='password'],
input[type='email'],
input[type='checkbox'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
b {
font-weight: 500;
}
label {
margin: 0;
padding: 0;
}
button,
textarea {
margin: 0;
padding: 0;
background-color: transparent;
color: inherit;
/* eslint-disable-next-line css/font-family-fallbacks */
font-family: inherit;
font-size: inherit;
font-weight: inherit;
line-height: inherit;
letter-spacing: inherit;
border: none;
}
button {
max-width: 100%;
text-transform: none;
text-align: inherit;
overflow: visible;
-webkit-appearance: button;
}
textarea,
input,
input[type],
input[type='text'],
input[type='username'],
input[type='password'],
input[type='email'],
input[type='checkbox'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
textarea {
color: inherit;
word-spacing: inherit;
}
textarea {
color: inherit;
word-spacing: inherit;
}
audio:not([controls]) {
/* eslint-disable-next-line css/no-important */
display: none !important;
}
audio:not([controls]) {
/* eslint-disable-next-line css/no-important */
display: none !important;
}
code,
pre {
font-family: var(--font-monospace);
font-size: 0.9em;
line-height: 1.3;
letter-spacing: -0.01em;
font-variant-ligatures: contextual;
}
code,
pre {
font-family: var(--font-monospace);
font-size: 0.9em;
line-height: 1.3;
letter-spacing: -0.01em;
font-variant-ligatures: contextual;
}
/* Accessibility Overrides :D */
/* Accessibility Overrides :D */
.force-underline-links [data-message-id] a:not([data-mention-id]),
.force-underline-links [data-profile-bio] a,
.force-underline-links [data-room-topic] a {
text-decoration: underline !important;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
.force-underline-links [data-message-id] a:not([data-mention-id]),
.force-underline-links [data-profile-bio] a,
.force-underline-links [data-room-topic] a {
text-decoration: underline !important;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
body.reduced-motion * {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
body.reduced-motion * {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
body.reduced-motion button:hover,
body.reduced-motion a:hover,
body.reduced-motion [role='button']:hover {
transform: none !important;
scale: 1 !important;
}
body.reduced-motion button:hover,
body.reduced-motion a:hover,
body.reduced-motion [role='button']:hover {
transform: none !important;
scale: 1 !important;
}
body.reduced-motion div[class*='Sidebar_SidebarItem']:hover,
body.reduced-motion div[class*='Sidebar_SidebarItem']:hover button,
body.reduced-motion div[class*='Sidebar_SidebarItem']:hover img {
transform: none !important;
scale: 1 !important;
translate: none !important;
margin: 0 !important;
padding: 0 !important;
}
body.reduced-motion div[class*='Sidebar_SidebarItem']:hover,
body.reduced-motion div[class*='Sidebar_SidebarItem']:hover button,
body.reduced-motion div[class*='Sidebar_SidebarItem']:hover img {
transform: none !important;
scale: 1 !important;
translate: none !important;
margin: 0 !important;
padding: 0 !important;
}
body.reduced-motion div[class*='Sidebar_SidebarStack']:hover {
width: revert !important;
translate: none !important;
transform: none !important;
}
body.reduced-motion div[class*='Sidebar_SidebarStack']:hover {
width: revert !important;
translate: none !important;
transform: none !important;
}
body.reduced-motion div[class*='layout_MessageBase'] {
animation: none !important;
transition: none !important;
transform: none !important;
}
body.reduced-motion div[class*='layout_MessageBase'] {
animation: none !important;
transition: none !important;
transform: none !important;
}
body.reduced-motion div[class*='RoomTimeline_messageList'],
body.reduced-motion div[class*='RoomTimeline_messageList'] > * {
scroll-behavior: auto !important;
}
body.reduced-motion div[class*='RoomTimeline_messageList'],
body.reduced-motion div[class*='RoomTimeline_messageList'] > * {
scroll-behavior: auto !important;
}
body.reduced-motion span[class*='layout_AvatarBase']:hover,
body.reduced-motion span[class*='layout_AvatarBase']:hover *,
body.reduced-motion button[class*='styles_MessageAvatar']:hover,
body.reduced-motion button[class*='styles_MessageAvatar']:hover * {
transform: none !important;
scale: 1 !important;
translate: none !important;
animation: none !important;
margin: 0 !important;
body.reduced-motion span[class*='layout_AvatarBase']:hover,
body.reduced-motion span[class*='layout_AvatarBase']:hover *,
body.reduced-motion button[class*='styles_MessageAvatar']:hover,
body.reduced-motion button[class*='styles_MessageAvatar']:hover * {
transform: none !important;
scale: 1 !important;
translate: none !important;
animation: none !important;
margin: 0 !important;
}
}
-1
View File
@@ -8,7 +8,6 @@ import '@fontsource/space-mono/700.css';
import '@fontsource/space-mono/400-italic.css';
import '@fontsource/space-mono/700-italic.css';
import 'katex/dist/katex.min.css';
import 'folds/dist/style.css';
import { configClass, varsClass } from 'folds';
import App from './app/pages/App';
import './app/i18n';