fix(mobile): doc property styles (#8760)

fix AF-1582
fix AF-1671

- mobile doc info dialog styles
- added ConfigModal for editing property values in modal, including:
  - workspace properties: text, number, tags
  - db properties: text, number, label, link
This commit is contained in:
pengx17
2024-11-12 07:11:00 +00:00
parent 2ee2cbfe36
commit fa82842cd7
67 changed files with 1460 additions and 492 deletions
@@ -9,7 +9,7 @@ import type {
import { forwardRef } from 'react';
import { RowInput } from './row-input';
import { input, inputWrapper } from './style.css';
import { input, inputWrapper, mobileInputWrapper } from './style.css';
export type InputProps = {
disabled?: boolean;
@@ -50,19 +50,23 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(function Input(
) {
return (
<div
className={clsx(inputWrapper, className, {
// status
disabled: disabled,
'no-border': noBorder,
// color
error: status === 'error',
success: status === 'success',
warning: status === 'warning',
default: status === 'default',
// size
large: size === 'large',
'extra-large': size === 'extraLarge',
})}
className={clsx(
BUILD_CONFIG.isMobileEdition ? mobileInputWrapper : inputWrapper,
className,
{
// status
disabled: disabled,
'no-border': noBorder,
// color
error: status === 'error',
success: status === 'success',
warning: status === 'warning',
default: status === 'default',
// size
large: size === 'large',
'extra-large': size === 'extraLarge',
}
)}
style={{
...style,
}}
@@ -51,6 +51,15 @@ export const inputWrapper = style({
},
},
});
export const mobileInputWrapper = style([
inputWrapper,
{
height: 30,
borderRadius: 4,
},
]);
export const input = style({
height: '100%',
width: '0',