Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editable inline card titles #592

Merged
merged 5 commits into from
Aug 24, 2018
Merged

editable inline card titles #592

merged 5 commits into from
Aug 24, 2018

Conversation

NebriBlackwing
Copy link
Member

@NebriBlackwing NebriBlackwing commented Aug 21, 2018

Signed-off-by: Ryan Fletcher ryan.fletcher@codepassion.ca

  • Resolves: #
  • Target version: master

Summary

closes issue: #251

TODO

  • ...

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Documentation (manuals or wiki) has been updated or is not required

@codecov
Copy link

codecov bot commented Aug 21, 2018

Codecov Report

Merging #592 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #592   +/-   ##
=======================================
  Coverage   75.46%   75.46%           
=======================================
  Files          52       52           
  Lines        1969     1969           
=======================================
  Hits         1486     1486           
  Misses        483      483

ng-click="c.status.editCard=true">{{cardservice.get(c.id).title}}</span>

<form ng-if="c.status.editCard" ng-submit="cardservice.update(c); c.status.editCard=false">
<input type="text" placeholder="<?php p($l->t('Add a new card')); ?>"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the input-inline class here, this should make the input look like the other inline editing fields. Also we need some adjustment so that the height and text of the card is not flipping around when changing from view to edit mode.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the class, struggling with controlling the height and text. Not sure where the extra height is coming from. Any advice on how to track it down? css issues like this is usually a struggle for me.

@NebriBlackwing
Copy link
Member Author

NebriBlackwing commented Aug 23, 2018

@nextcloud/deck "Also we need some adjustment so that the height and text of the card is not flipping around when changing from view to edit mode." - juliushaertl

Any css guru's out there able to help me out here with the height / width jumps when the control switches from a span to input element? see line 79 on templates/part.board.mainView.php it is driving me bonkers.

@NebriBlackwing
Copy link
Member Author

AHA! @juliushaertl take a look at my last commit, let me know if that is satisfactory for the "jumps".

@@ -125,7 +125,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
$scope.filterData('-lastModified', $scope.searchText);
} else {
$scope.filterData('order', $scope.searchText);
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace issues again ;)

@@ -136,7 +136,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
if ($scope.stacks === undefined) {
return;
}
angular.copy(StackService.getData(), $scope.stacks);
angular.copy(StackService.getData(), $scope.stacks);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace

<form ng-if="s.status.editStack" ng-submit="stackservice.update(s); s.status.editStack=false">
<input type="text" placeholder="<?php p($l->t('Add a new stack')); ?>"
ng-blur="stackservice.update(s); s.status.editStack=false" ng-model="s.title"
autofocus-on-insert required maxlength="100" />
</form>
</form>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace

@juliushaertl
Copy link
Member

@Nebri I've pushed a commit to fix the padding issue for the input field. Good to be merged, once the whitespace issues are fixed. 👍

@NebriBlackwing
Copy link
Member Author

@juliushaertl I found the user settings in visual studio code to automatically trim whitespaces from the end of a line. This should murder the whitespace issue for me. Requested changes are in.

Ryan Fletcher and others added 5 commits August 24, 2018 14:56
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
@juliushaertl juliushaertl merged commit 939f5fa into master Aug 24, 2018
@juliushaertl juliushaertl deleted the 251-card-title-inline branch August 24, 2018 13:57
@juliushaertl juliushaertl mentioned this pull request Oct 8, 2018
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants