Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
6b9773bf
Commit
6b9773bf
authored
Aug 05, 2021
by
Stefan Probst
Browse files
style: adjust button size
parent
c43ae956
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/screens/item/ItemLayout.tsx
View file @
6b9773bf
...
...
@@ -120,7 +120,7 @@ export default function ItemLayout({
pathname
:
`/
${
item
.
category
}
/
${
item
.
persistentId
}
/edit`
,
}
}
>
<
a
className
=
"w-32 px-6 py-3 text-lg text-center text-white transition rounded
lg:text-xl lg:w-48 lg:px-10 lg:py-4
bg-primary-750 hover:bg-secondary-600"
>
<
a
className
=
"w-32 px-6 py-3 text-lg text-center text-white transition rounded bg-primary-750 hover:bg-secondary-600"
>
Edit
</
a
>
</
Link
>
...
...
@@ -130,18 +130,18 @@ export default function ItemLayout({
pathname
:
`/
${
item
.
category
}
/
${
item
.
persistentId
}
/history`
,
}
}
>
<
a
className
=
"w-32 px-6 py-3 text-lg text-center text-white transition rounded
lg:text-xl lg:w-48 lg:px-10 lg:py-4
bg-primary-750 hover:bg-secondary-600"
>
<
a
className
=
"w-32 px-6 py-3 text-lg text-center text-white transition rounded bg-primary-750 hover:bg-secondary-600"
>
History
</
a
>
</
Link
>
<
ProtectedView
roles
=
{
[
'
administrator
'
]
}
>
<
DeleteItemButton
id
=
{
item
.
persistentId
}
category
=
{
item
.
category
as
ItemCategory
}
/>
</
ProtectedView
>
</
div
>
</
ProtectedView
>
<
ProtectedView
roles
=
{
[
'
administrator
'
]
}
>
<
DeleteItemButton
id
=
{
item
.
persistentId
}
category
=
{
item
.
category
as
ItemCategory
}
/>
</
ProtectedView
>
</
HStack
>
<
ItemDescription
description
=
{
item
.
description
}
/>
</
VStack
>
...
...
@@ -216,7 +216,7 @@ function DeleteItemButton({
<
button
onClick
=
{
deleteItem
}
className
=
{
cx
(
'
w-32 px-6 py-3 text-lg text-center text-white transition rounded
lg:text-xl lg:w-48 lg:px-10 lg:py-4
bg-error-600 hover:bg-error-700
'
,
'
w-32 px-6 py-3 text-lg text-center text-white transition rounded bg-error-600 hover:bg-error-700
'
,
status
!==
'
idle
'
&&
'
pointer-events-none
'
,
)
}
>
...
...
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