Skip to content

Commit

Permalink
adjust ui
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk committed Jan 10, 2025
1 parent d1e918e commit 671cc21
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/web/components/common/MySelect/MultipleSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ const MultipleSelect = <T = any,>({
return (
<MyTag
key={i}
color={'myGray.600'}
colorSchema="blue"
bg={'primary.100'}
color={'primary.700'}
type={'fill'}
borderRadius={'full'}
px={2}
Expand Down
2 changes: 1 addition & 1 deletion packages/web/components/common/MySelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const MySelect = <T = any,>(
px={3}
rightIcon={<MyIcon name={'core/chat/chevronDown'} w={4} color={'myGray.500'} />}
variant={'whitePrimaryOutline'}
minH={'32px'}
size={'md'}
fontSize={'sm'}
textAlign={'left'}
_active={{
Expand Down
5 changes: 4 additions & 1 deletion projects/app/src/pages/account/usage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const UsageTable = () => {
() =>
members.map((item) => ({
label: (
<Flex alignItems={'center'}>
<Flex alignItems={'center'} color={'myGray.500'}>
<Avatar src={item.avatar} w={'20px'} mr={1} rounded={'full'} />
{item.memberName}
</Flex>
Expand Down Expand Up @@ -167,6 +167,7 @@ const UsageTable = () => {
{!isDetail && (
<MySelect
bg={'myGray.50'}
minH={'32px'}
height={'32px'}
fontSize={'mini'}
ml={1}
Expand Down Expand Up @@ -216,6 +217,7 @@ const UsageTable = () => {
}}
itemWrap={false}
height={'32px'}
bg={'myGray.50'}
w={'160px'}
/>
</Box>
Expand All @@ -232,6 +234,7 @@ const UsageTable = () => {
onSelect={(val) => setUsageSources(val as UsageSourceEnum[])}
itemWrap={false}
height={'32px'}
bg={'myGray.50'}
w={'160px'}
/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ const InputTypeConfig = ({
}));

const valueTypeSelectList = Object.values(FlowValueTypeMap).map((item) => ({
label: (
<Flex alignItems={'center'} h={6}>
{t(item.label as any)}
</Flex>
),
label: t(item.label as any),
value: item.value
}));

Expand Down Expand Up @@ -363,7 +359,8 @@ const InputTypeConfig = ({
<MultipleSelect<WorkflowIOValueTypeEnum>
list={valueTypeSelectList}
bg={'myGray.50'}
height={'40px'}
minH={'40px'}
py={2}
value={selectValueTypeList || []}
onSelect={(e) => {
setValue('customInputConfig.selectValueTypeList', e);
Expand Down

0 comments on commit 671cc21

Please sign in to comment.