fix: add http params focus & ui (#2611)

This commit is contained in:
heheer
2024-09-04 13:37:29 +08:00
committed by GitHub
parent 64708ea424
commit d6233cd7b1
8 changed files with 52 additions and 62 deletions

View File

@@ -10,6 +10,7 @@ type Props<ValueType = string> = Omit<GridProps, 'onChange'> & {
size?: 'sm' | 'md' | 'lg';
inlineStyles?: FlexProps;
activeColor?: string;
defaultColor?: string;
onChange: (value: ValueType) => void;
};
@@ -18,6 +19,7 @@ const LightRowTabs = <ValueType = string,>({
size = 'md',
value,
activeColor = 'primary.600',
defaultColor = 'transparent',
onChange,
inlineStyles,
...props
@@ -63,7 +65,8 @@ const LightRowTabs = <ValueType = string,>({
py={sizeMap.inlineP}
alignItems={'center'}
justifyContent={'center'}
borderBottom={'2px solid transparent'}
borderBottom={'2px solid'}
borderColor={defaultColor}
px={3}
whiteSpace={'nowrap'}
{...(value === item.value

View File

@@ -106,6 +106,7 @@ export default function Editor({
cursor={'text'}
color={'myGray.700'}
bg={focus ? 'white' : bg}
borderRadius={'md'}
>
<LexicalComposer initialConfig={initialConfig} key={key}>
<PlainTextPlugin

View File

@@ -77,10 +77,7 @@ export default function VariableLabelPickerPlugin({
onSelectOption={onSelectOption}
triggerFn={checkForTriggerMatch}
options={variableFilter(variables, queryString || '')}
menuRenderFn={(
anchorElementRef,
{ selectedIndex, selectOptionAndCleanUp, setHighlightedIndex }
) => {
menuRenderFn={(anchorElementRef, { selectedIndex, selectOptionAndCleanUp }) => {
if (anchorElementRef.current == null) {
return null;
}