mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-21 05:01:34 +03:00
fix(mobile): tag and detail page dark mode adaption (#9145)
This commit is contained in:
parent
6f6f95a8b0
commit
133f21b9ca
@ -14,7 +14,7 @@ import { AppTabs } from '../../../components';
|
||||
import { CollectionDetail } from '../../../views';
|
||||
|
||||
export const Component = () => {
|
||||
useThemeColorV2('layer/background/secondary');
|
||||
useThemeColorV2('layer/background/mobile/primary');
|
||||
const { collectionService, globalContextService, workspaceService } =
|
||||
useServices({
|
||||
WorkspaceService,
|
||||
|
@ -12,7 +12,7 @@ import { useParams } from 'react-router-dom';
|
||||
import { TagDetail } from '../../../views';
|
||||
|
||||
export const Component = () => {
|
||||
useThemeColorV2('layer/background/secondary');
|
||||
useThemeColorV2('layer/background/mobile/primary');
|
||||
const params = useParams();
|
||||
const tagId = params.tagId;
|
||||
|
||||
|
@ -2,6 +2,10 @@ import { bodyEmphasized } from '@toeverything/theme/typography';
|
||||
import { cssVarV2 } from '@toeverything/theme/v2';
|
||||
import { style } from '@vanilla-extract/css';
|
||||
|
||||
export const header = style({
|
||||
background: cssVarV2.layer.background.mobile.primary,
|
||||
});
|
||||
|
||||
export const headerContent = style([
|
||||
bodyEmphasized,
|
||||
{
|
||||
|
@ -12,6 +12,7 @@ import * as styles from './detail.css';
|
||||
export const DetailHeader = ({ collection }: { collection: Collection }) => {
|
||||
return (
|
||||
<PageHeader
|
||||
className={styles.header}
|
||||
back
|
||||
suffix={
|
||||
<MobileMenu items={<AllDocsMenu />}>
|
||||
|
@ -12,6 +12,7 @@ export const TagDetailHeader = ({ tag }: { tag: Tag }) => {
|
||||
const color = useLiveData(tag.color$);
|
||||
return (
|
||||
<PageHeader
|
||||
className={styles.header}
|
||||
back
|
||||
suffix={
|
||||
<MobileMenu items={<AllDocsMenu />}>
|
||||
|
@ -2,6 +2,9 @@ import { bodyEmphasized } from '@toeverything/theme/typography';
|
||||
import { cssVarV2 } from '@toeverything/theme/v2';
|
||||
import { style } from '@vanilla-extract/css';
|
||||
|
||||
export const header = style({
|
||||
background: cssVarV2.layer.background.mobile.primary,
|
||||
});
|
||||
export const headerContent = style([
|
||||
bodyEmphasized,
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user