fix(core): page info modal styles (#8067)
This commit is contained in:
@@ -1,12 +1,17 @@
|
|||||||
import { cssVar } from '@toeverything/theme';
|
import { cssVar } from '@toeverything/theme';
|
||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
|
|
||||||
|
import { rowHPadding } from '../styles.css';
|
||||||
|
|
||||||
export const container = style({
|
export const container = style({
|
||||||
maxWidth: 480,
|
maxWidth: 480,
|
||||||
minWidth: 360,
|
minWidth: 360,
|
||||||
padding: '20px 0',
|
padding: '20px 0',
|
||||||
alignSelf: 'start',
|
alignSelf: 'start',
|
||||||
marginTop: '120px',
|
marginTop: '120px',
|
||||||
|
vars: {
|
||||||
|
[rowHPadding]: '6px',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export const titleContainer = style({
|
export const titleContainer = style({
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export const InfoTable = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.container}>
|
<div>
|
||||||
<TimeRow className={styles.timeRow} docId={docId} />
|
<TimeRow className={styles.timeRow} docId={docId} />
|
||||||
<Divider size="thinner" />
|
<Divider size="thinner" />
|
||||||
{backlinks && backlinks.length > 0 ? (
|
{backlinks && backlinks.length > 0 ? (
|
||||||
|
|||||||
@@ -265,7 +265,11 @@ const CloudUserAvatar = (props: { type: 'CreatedBy' | 'UpdatedBy' }) => {
|
|||||||
|
|
||||||
export const LocalUserValue = () => {
|
export const LocalUserValue = () => {
|
||||||
const t = useI18n();
|
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 = () => {
|
export const CreatedUserValue = () => {
|
||||||
|
|||||||
@@ -267,6 +267,7 @@ export const propertyRowCell = style({
|
|||||||
fontSize: cssVar('fontSm'),
|
fontSize: cssVar('fontSm'),
|
||||||
lineHeight: '22px',
|
lineHeight: '22px',
|
||||||
userSelect: 'none',
|
userSelect: 'none',
|
||||||
|
padding: `6px ${rowHPadding} 6px 8px`,
|
||||||
':focus-visible': {
|
':focus-visible': {
|
||||||
outline: 'none',
|
outline: 'none',
|
||||||
},
|
},
|
||||||
@@ -328,7 +329,6 @@ export const propertyRowValueCell = style([
|
|||||||
propertyRowCell,
|
propertyRowCell,
|
||||||
editablePropertyRowCell,
|
editablePropertyRowCell,
|
||||||
{
|
{
|
||||||
padding: `6px ${rowHPadding} 6px 6px`,
|
|
||||||
border: `1px solid transparent`,
|
border: `1px solid transparent`,
|
||||||
color: cssVar('textPrimaryColor'),
|
color: cssVar('textPrimaryColor'),
|
||||||
':focus': {
|
':focus': {
|
||||||
|
|||||||
Reference in New Issue
Block a user