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:
rohit1101 2021-06-21 21:20:21 +05:30 committed by GitHub
parent 1349e3b50b
commit 1f762b238a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -105,7 +105,7 @@ const Gallery = (props: Props): JSX.Element => {
<div <div
className='octo-gallery-new' className='octo-gallery-new'
onClick={() => { onClick={() => {
props.addCard(false) props.addCard(true)
}} }}
> >
<FormattedMessage <FormattedMessage

View file

@ -24,7 +24,7 @@ type Props = {
intl: IntlShape intl: IntlShape
readonly: boolean readonly: boolean
onCardClicked: (e: React.MouseEvent, card: Card) => void onCardClicked: (e: React.MouseEvent, card: Card) => void
addCard: (groupByOptionId?: string) => Promise<void> addCard: (groupByOptionId?: string, show?:boolean) => Promise<void>
} }
type State = { type State = {
@ -136,7 +136,7 @@ class Kanban extends React.Component<Props, State> {
{!this.props.readonly && {!this.props.readonly &&
<Button <Button
onClick={() => { onClick={() => {
this.props.addCard(group.option.id) this.props.addCard(group.option.id, true)
}} }}
> >
<FormattedMessage <FormattedMessage

View file

@ -59,7 +59,7 @@
} }
.Menu.left { .Menu.left {
right: -32px; right: -16px;
} }
&.expanded { &.expanded {