fix(core): page info modal styles (#8067)

This commit is contained in:
pengx17
2024-09-03 12:46:37 +00:00
parent 681f4561fb
commit 7dde509970
4 changed files with 12 additions and 3 deletions

View File

@@ -1,12 +1,17 @@
import { cssVar } from '@toeverything/theme';
import { style } from '@vanilla-extract/css';
import { rowHPadding } from '../styles.css';
export const container = style({
maxWidth: 480,
minWidth: 360,
padding: '20px 0',
alignSelf: 'start',
marginTop: '120px',
vars: {
[rowHPadding]: '6px',
},
});
export const titleContainer = style({

View File

@@ -106,7 +106,7 @@ export const InfoTable = ({
);
return (
<div className={styles.container}>
<div>
<TimeRow className={styles.timeRow} docId={docId} />
<Divider size="thinner" />
{backlinks && backlinks.length > 0 ? (

View File

@@ -265,7 +265,11 @@ const CloudUserAvatar = (props: { type: 'CreatedBy' | 'UpdatedBy' }) => {
export const LocalUserValue = () => {
const t = useI18n();
return <span>{t['com.affine.page-properties.local-user']()}</span>;
return (
<span className={styles.propertyRowValueCell}>
{t['com.affine.page-properties.local-user']()}
</span>
);
};
export const CreatedUserValue = () => {

View File

@@ -267,6 +267,7 @@ export const propertyRowCell = style({
fontSize: cssVar('fontSm'),
lineHeight: '22px',
userSelect: 'none',
padding: `6px ${rowHPadding} 6px 8px`,
':focus-visible': {
outline: 'none',
},
@@ -328,7 +329,6 @@ export const propertyRowValueCell = style([
propertyRowCell,
editablePropertyRowCell,
{
padding: `6px ${rowHPadding} 6px 6px`,
border: `1px solid transparent`,
color: cssVar('textPrimaryColor'),
':focus': {