Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
ccb1d227
Commit
ccb1d227
authored
May 16, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
design fixes
parent
51c99be8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
PublicTagsSubmitForm.tsx
ui/publicTags/submit/PublicTagsSubmitForm.tsx
+3
-3
PublicTagsSubmitFieldTag.tsx
ui/publicTags/submit/fields/PublicTagsSubmitFieldTag.tsx
+6
-6
PublicTagsSubmitFieldTagColor.tsx
...ublicTags/submit/fields/PublicTagsSubmitFieldTagColor.tsx
+1
-1
No files found.
ui/publicTags/submit/PublicTagsSubmitForm.tsx
View file @
ccb1d227
...
@@ -84,8 +84,8 @@ const PublicTagsSubmitForm = ({ config, userInfo, onSubmitResult }: Props) => {
...
@@ -84,8 +84,8 @@ const PublicTagsSubmitForm = ({ config, userInfo, onSubmitResult }: Props) => {
onSubmit=
{
formApi
.
handleSubmit
(
onFormSubmit
)
}
onSubmit=
{
formApi
.
handleSubmit
(
onFormSubmit
)
}
>
>
<
Grid
<
Grid
columnGap=
{
5
}
columnGap=
{
3
}
rowGap=
{
{
base
:
5
,
lg
:
4
}
}
rowGap=
{
3
}
templateColumns=
{
{
base
:
'
1fr
'
,
lg
:
'
1fr 1fr minmax(0, 200px)
'
,
xl
:
'
1fr 1fr minmax(0, 250px)
'
}
}
templateColumns=
{
{
base
:
'
1fr
'
,
lg
:
'
1fr 1fr minmax(0, 200px)
'
,
xl
:
'
1fr 1fr minmax(0, 250px)
'
}
}
>
>
<
GridItem
colSpan=
{
{
base
:
1
,
lg
:
3
}
}
as=
"h2"
textStyle=
"h4"
>
<
GridItem
colSpan=
{
{
base
:
1
,
lg
:
3
}
}
as=
"h2"
textStyle=
"h4"
>
...
@@ -98,7 +98,7 @@ const PublicTagsSubmitForm = ({ config, userInfo, onSubmitResult }: Props) => {
...
@@ -98,7 +98,7 @@ const PublicTagsSubmitForm = ({ config, userInfo, onSubmitResult }: Props) => {
<
PublicTagsSubmitFieldCompanyWebsite
/>
<
PublicTagsSubmitFieldCompanyWebsite
/>
{
!
isMobile
&&
<
div
/>
}
{
!
isMobile
&&
<
div
/>
}
<
GridItem
colSpan=
{
{
base
:
1
,
lg
:
3
}
}
as=
"h2"
textStyle=
"h4"
mt=
{
3
}
>
<
GridItem
colSpan=
{
{
base
:
1
,
lg
:
3
}
}
as=
"h2"
textStyle=
"h4"
mt=
{
{
base
:
3
,
lg
:
5
}
}
>
Public tags/labels
Public tags/labels
<
Hint
label=
"Submit a public tag proposal for our moderation team to review"
ml=
{
1
}
color=
"link"
/>
<
Hint
label=
"Submit a public tag proposal for our moderation team to review"
ml=
{
1
}
color=
"link"
/>
</
GridItem
>
</
GridItem
>
...
...
ui/publicTags/submit/fields/PublicTagsSubmitFieldTag.tsx
View file @
ccb1d227
...
@@ -43,8 +43,8 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
...
@@ -43,8 +43,8 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
<>
<>
<
GridItem
colSpan=
{
{
base
:
1
,
lg
:
2
}
}
p=
"10px"
borderRadius=
"base"
bgColor=
{
errors
?
bgColorError
:
bgColorDefault
}
>
<
GridItem
colSpan=
{
{
base
:
1
,
lg
:
2
}
}
p=
"10px"
borderRadius=
"base"
bgColor=
{
errors
?
bgColorError
:
bgColorDefault
}
>
<
Grid
<
Grid
rowGap=
{
2
}
rowGap=
{
3
}
columnGap=
{
2
}
columnGap=
{
3
}
templateColumns=
{
{
base
:
'
1fr
'
,
lg
:
'
repeat(4, 1fr)
'
}
}
templateColumns=
{
{
base
:
'
1fr
'
,
lg
:
'
repeat(4, 1fr)
'
}
}
>
>
<
GridItem
colSpan=
{
{
base
:
1
,
lg
:
2
}
}
>
<
GridItem
colSpan=
{
{
base
:
1
,
lg
:
2
}
}
>
...
@@ -75,7 +75,7 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
...
@@ -75,7 +75,7 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
<
PublicTagsSubmitFieldTagColor
<
PublicTagsSubmitFieldTagColor
fieldType=
"bgColor"
fieldType=
"bgColor"
fieldName=
{
`tags.${ index }.bgColor`
}
fieldName=
{
`tags.${ index }.bgColor`
}
placeholder=
"Background
color
"
placeholder=
"Background
(Hex)
"
index=
{
index
}
index=
{
index
}
register=
{
register
}
register=
{
register
}
error=
{
errors
?.
bgColor
}
error=
{
errors
?.
bgColor
}
...
@@ -84,7 +84,7 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
...
@@ -84,7 +84,7 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
<
PublicTagsSubmitFieldTagColor
<
PublicTagsSubmitFieldTagColor
fieldType=
"textColor"
fieldType=
"textColor"
fieldName=
{
`tags.${ index }.textColor`
}
fieldName=
{
`tags.${ index }.textColor`
}
placeholder=
"Text
color
"
placeholder=
"Text
(Hex)
"
index=
{
index
}
index=
{
index
}
register=
{
register
}
register=
{
register
}
error=
{
errors
?.
textColor
}
error=
{
errors
?.
textColor
}
...
@@ -100,7 +100,7 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
...
@@ -100,7 +100,7 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
maxH=
"160px"
maxH=
"160px"
/>
/>
<
InputPlaceholder
<
InputPlaceholder
text=
"
Label description - any text to be show
n on label hover (max 80 characters)"
text=
"
Descriptio
n on label hover (max 80 characters)"
error=
{
errors
?.
tooltipDescription
}
error=
{
errors
?.
tooltipDescription
}
/>
/>
</
FormControl
>
</
FormControl
>
...
@@ -138,7 +138,7 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
...
@@ -138,7 +138,7 @@ const PublicTagsSubmitFieldTag = ({ index, isDisabled, register, errors, onAddCl
)
}
)
}
</
Flex
>
</
Flex
>
{
!
isMobile
&&
(
{
!
isMobile
&&
(
<
Flex
flexDir=
"column"
alignItems=
"flex-start"
mt=
"10px"
rowGap=
{
2
}
>
<
Flex
flexDir=
"column"
alignItems=
"flex-start"
mt=
{
10
}
rowGap=
{
2
}
>
<
EntityTag
data=
{
{
<
EntityTag
data=
{
{
name
:
field
.
name
||
'
Tag name
'
,
name
:
field
.
name
||
'
Tag name
'
,
tagType
:
field
.
type
.
value
,
tagType
:
field
.
type
.
value
,
...
...
ui/publicTags/submit/fields/PublicTagsSubmitFieldTagColor.tsx
View file @
ccb1d227
...
@@ -42,7 +42,7 @@ const PublicTagsSubmitFieldTagColor = <Type extends ColorFieldTypes>({ isDisable
...
@@ -42,7 +42,7 @@ const PublicTagsSubmitFieldTagColor = <Type extends ColorFieldTypes>({ isDisable
maxLength=
{
6
}
maxLength=
{
6
}
/>
/>
<
InputPlaceholder
text=
{
placeholder
}
error=
{
error
}
/>
<
InputPlaceholder
text=
{
placeholder
}
error=
{
error
}
/>
<
InputRightElement
w=
"30px"
right=
{
4
}
zIndex=
{
10
}
>
<
InputRightElement
w=
"30px"
h=
"auto"
right=
{
4
}
top=
"50%"
transform=
"translateY(-50%)"
zIndex=
{
10
}
>
<
Circle
<
Circle
size=
"30px"
size=
"30px"
bgColor=
{
value
&&
colorValidator
(
value
)
===
true
?
`#${ value }`
:
circleBgColorDefault
[
fieldType
]
}
bgColor=
{
value
&&
colorValidator
(
value
)
===
true
?
`#${ value }`
:
circleBgColorDefault
[
fieldType
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment