GH-364 Automatically open new card for editing (#571)
* Make prebuild commit * Implement open card by default on +New click in Board and Gallery View * Remove horizontal scrollbar sidebar when options icon on click * revert changes in package-lock.json
This commit is contained in:
parent
1349e3b50b
commit
1f762b238a
3 changed files with 4 additions and 4 deletions
|
@ -105,7 +105,7 @@ const Gallery = (props: Props): JSX.Element => {
|
|||
<div
|
||||
className='octo-gallery-new'
|
||||
onClick={() => {
|
||||
props.addCard(false)
|
||||
props.addCard(true)
|
||||
}}
|
||||
>
|
||||
<FormattedMessage
|
||||
|
|
|
@ -24,7 +24,7 @@ type Props = {
|
|||
intl: IntlShape
|
||||
readonly: boolean
|
||||
onCardClicked: (e: React.MouseEvent, card: Card) => void
|
||||
addCard: (groupByOptionId?: string) => Promise<void>
|
||||
addCard: (groupByOptionId?: string, show?:boolean) => Promise<void>
|
||||
}
|
||||
|
||||
type State = {
|
||||
|
@ -136,7 +136,7 @@ class Kanban extends React.Component<Props, State> {
|
|||
{!this.props.readonly &&
|
||||
<Button
|
||||
onClick={() => {
|
||||
this.props.addCard(group.option.id)
|
||||
this.props.addCard(group.option.id, true)
|
||||
}}
|
||||
>
|
||||
<FormattedMessage
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
}
|
||||
|
||||
.Menu.left {
|
||||
right: -32px;
|
||||
right: -16px;
|
||||
}
|
||||
|
||||
&.expanded {
|
||||
|
|
Loading…
Reference in a new issue