mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 05:58:56 +08:00
fix(core): some style issues (#9875)
fix AF-2158, AF-2159 It seems the input hack for modal is no longer needed
This commit is contained in:
+4
-3
@@ -1,13 +1,14 @@
|
|||||||
import { cssVar } from '@toeverything/theme';
|
import { cssVar } from '@toeverything/theme';
|
||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
export const statusWrapper = style({
|
export const statusWrapper = style({
|
||||||
marginLeft: 8,
|
position: 'absolute',
|
||||||
marginRight: 10,
|
right: 10,
|
||||||
});
|
});
|
||||||
export const tag = style({
|
export const tag = style({
|
||||||
padding: '2px 15px',
|
padding: '2px 15px',
|
||||||
height: 20,
|
height: 20,
|
||||||
lineHeight: '20px',
|
display: 'inline-flex',
|
||||||
|
alignItems: 'center',
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
fontSize: cssVar('fontXs'),
|
fontSize: cssVar('fontXs'),
|
||||||
selectors: {
|
selectors: {
|
||||||
|
|||||||
@@ -208,6 +208,7 @@ export const signInPageContainer = style({
|
|||||||
});
|
});
|
||||||
export const input = style({
|
export const input = style({
|
||||||
width: '330px',
|
width: '330px',
|
||||||
|
position: 'relative',
|
||||||
'@media': {
|
'@media': {
|
||||||
'screen and (max-width: 520px)': {
|
'screen and (max-width: 520px)': {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
|||||||
@@ -96,12 +96,6 @@ export const RulesMode = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/*prevents modal autofocus to the first input*/}
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
style={{ width: 0, height: 0 }}
|
|
||||||
onFocus={e => requestAnimationFrame(() => e.target.blur())}
|
|
||||||
/>
|
|
||||||
<Tooltip content={tips}>
|
<Tooltip content={tips}>
|
||||||
<div className={clsx(styles.rulesTitle, styles.ellipsis)}>{tips}</div>
|
<div className={clsx(styles.rulesTitle, styles.ellipsis)}>{tips}</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user