fix: some style

This commit is contained in:
Kilu
2024-06-26 19:47:24 +08:00
parent 492b9fddb5
commit 303e2b30ac
7 changed files with 10 additions and 10 deletions

View File

@ -24,7 +24,7 @@
"coverage": "pnpm run test:unit && pnpm run test:components"
},
"dependencies": {
"@appflowyinc/client-api-wasm": "0.0.4",
"@appflowyinc/client-api-wasm": "0.0.6",
"@atlaskit/primitives": "^5.5.3",
"@emoji-mart/data": "^1.1.2",
"@emoji-mart/react": "^1.1.1",

View File

@ -6,8 +6,8 @@ settings:
dependencies:
'@appflowyinc/client-api-wasm':
specifier: 0.0.4
version: 0.0.4
specifier: 0.0.6
version: 0.0.6
'@atlaskit/primitives':
specifier: ^5.5.3
version: 5.7.0(@types/react@18.2.66)(react@18.2.0)
@ -451,8 +451,8 @@ packages:
'@jridgewell/gen-mapping': 0.3.5
'@jridgewell/trace-mapping': 0.3.25
/@appflowyinc/client-api-wasm@0.0.4:
resolution: {integrity: sha512-R8nm811vmh4oJU7LDFV7TJP89Y+WZKYrwpR1xrfL9m+PtyA/c21HvNJrvT+NssHfuz+IKj4L1cH2uXQcggnybA==}
/@appflowyinc/client-api-wasm@0.0.6:
resolution: {integrity: sha512-qx6NlHwBUDRMTDzy2hqi5fiTk/F8aV+QbUBlwrQIp+te+OC1akXmuBOGVehXJlycHfWfD/6ua1AyL6nf3QDAZQ==}
dev: false
/@atlaskit/analytics-next-stable-react-context@1.0.1(react@18.2.0):

View File

@ -202,7 +202,6 @@ export async function revalidatePublishView<
>(name: string, fetcher: Fetcher<T>, collab: YDoc) {
const { data, meta, rows } = await fetcher();
console.log('revalidatePublishView', name);
await db.view_metas.put(
{
publish_name: name,
@ -212,7 +211,6 @@ export async function revalidatePublishView<
},
name
);
console.log('revalidatePublishView', name, 'done');
if (rows) {
for (const [key, value] of Object.entries(rows)) {

View File

@ -54,7 +54,6 @@ export class AFClientService implements AFService {
async getPublishView(namespace: string, publishName: string) {
const name = `${namespace}_${publishName}`;
console.log('getPublishView', name);
const isLoaded = this.publishViewLoaded.has(name);
const doc = await getPublishView(
() => {

View File

@ -9,6 +9,10 @@ export function initAPIService(
clientId: string;
}
) {
if (client) {
return;
}
window.refresh_token = () => {
//
};

View File

@ -27,7 +27,6 @@ export function useAppThemeMode() {
}, []);
useEffect(() => {
console.log('isDark', isDark);
document.documentElement.setAttribute('data-dark-mode', isDark ? 'true' : 'false');
}, [isDark]);

View File

@ -59,7 +59,7 @@ export function ViewMetaPreview({ icon, cover, name }: ViewMetaProps) {
return (
<div className={'flex w-full flex-col items-center'}>
{cover && <ViewCover coverType={coverType} coverValue={coverValue} />}
<div className={`relative mx-16 mb-9 mt-[52px] w-[964px] min-w-0 max-w-full overflow-visible max-md:mx-4`}>
<div className={`relative mx-16 mb-6 mt-[52px] w-[964px] min-w-0 max-w-full overflow-visible max-md:mx-4`}>
<div className={'flex items-center gap-4 px-16 text-[2.25rem] font-bold leading-[1.5em] max-sm:text-[7vw]'}>
<div className={`view-icon`}>{icon?.value}</div>
{name || <span className={'text-text-placeholder'}>{t('menuAppHeader.defaultNewPageName')}</span>}