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:
pengx17
2025-01-24 05:06:59 +00:00
parent 699da97879
commit 791484a46c
3 changed files with 5 additions and 9 deletions

View File

@@ -1,13 +1,14 @@
import { cssVar } from '@toeverything/theme';
import { style } from '@vanilla-extract/css';
export const statusWrapper = style({
marginLeft: 8,
marginRight: 10,
position: 'absolute',
right: 10,
});
export const tag = style({
padding: '2px 15px',
height: 20,
lineHeight: '20px',
display: 'inline-flex',
alignItems: 'center',
borderRadius: 10,
fontSize: cssVar('fontXs'),
selectors: {

View File

@@ -208,6 +208,7 @@ export const signInPageContainer = style({
});
export const input = style({
width: '330px',
position: 'relative',
'@media': {
'screen and (max-width: 520px)': {
width: '100%',

View File

@@ -96,12 +96,6 @@ export const RulesMode = ({
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}>
<div className={clsx(styles.rulesTitle, styles.ellipsis)}>{tips}</div>
</Tooltip>