nicolium: add config for displaying compose box in timelines. it will be added to settings later

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-10 10:36:35 +01:00
parent ba0abedf79
commit 9cef898051
2 changed files with 3 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ const HomeLayout = () => {
const { data: account } = useOwnAccount();
const features = useFeatures();
const frontendConfig = useFrontendConfig();
const { disableUserProvidedMedia } = useSettings();
const { disableUserProvidedMedia, composeInTimelines } = useSettings();
const composeId = 'home';
const composeBlock = useRef<HTMLDivElement>(null);
@@ -51,7 +51,7 @@ const HomeLayout = () => {
return (
<>
<Layout.Main className='⁂-layout__main--home'>
{me && (
{composeInTimelines && me && (
<div
className={clsx('⁂-compose-block', {
'⁂-compose-block--dragging': isDragging,

View File

@@ -53,6 +53,7 @@ const settingsSchema = v.object({
disableUserProvidedMedia: v.fallback(v.boolean(), false),
stripMetadata: v.fallback(v.boolean(), false),
storeSettingsInNotes: v.fallback(v.boolean(), false),
composeInTimelines: v.fallback(v.boolean(), true),
theme: v.optional(
coerceObject({