mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 08:19:02 +01:00
Added the mask to avoid switching card, when in editing mode.
This commit is contained in:
parent
44c51770d9
commit
fc0805916e
@ -144,19 +144,22 @@ Clipperz.PM.UI.Components.Cards.Edit = React.createClass({
|
||||
|
||||
render: function () {
|
||||
var classes = {
|
||||
'edit': true
|
||||
'edit': true
|
||||
}
|
||||
|
||||
//console.log("RENDER CARD EDIT");
|
||||
return React.DOM.div({'className':React.addons.classSet(classes)},[
|
||||
Clipperz.PM.UI.Components.Cards.EditToolbar(this.props),
|
||||
React.DOM.div({'className':'content'}, [
|
||||
this.renderLabel(this.props['label']),
|
||||
this.renderTags(this.props['tags']),
|
||||
this.renderNotes(this.props['notes']),
|
||||
this.renderFields(this.props['fields']),
|
||||
this.renderAddNewField(),
|
||||
this.renderDirectLogins(this.props['directLogins'])
|
||||
return React.DOM.div({'className':'editWrapper'}, [
|
||||
React.DOM.div({'className':'mask'}),
|
||||
React.DOM.div({'className':React.addons.classSet(classes)},[
|
||||
Clipperz.PM.UI.Components.Cards.EditToolbar(this.props),
|
||||
React.DOM.div({'className':'content'}, [
|
||||
this.renderLabel(this.props['label']),
|
||||
this.renderTags(this.props['tags']),
|
||||
this.renderNotes(this.props['notes']),
|
||||
this.renderFields(this.props['fields']),
|
||||
this.renderAddNewField(),
|
||||
this.renderDirectLogins(this.props['directLogins'])
|
||||
])
|
||||
])
|
||||
]);
|
||||
},
|
||||
|
@ -265,29 +265,50 @@ div.cardContent {
|
||||
|
||||
@include flexbox();
|
||||
|
||||
& > div.view, & > div.edit {
|
||||
div.editWrapper {
|
||||
@include flex(auto);
|
||||
@include mask();
|
||||
|
||||
@include flexbox;
|
||||
& > div.edit {
|
||||
@include flex(auto);
|
||||
@include flexbox;
|
||||
@include flex-direction(column);
|
||||
|
||||
position: relative;
|
||||
z-index: 10+1;
|
||||
|
||||
.content {
|
||||
background-color: yellow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& > div.view /*, & > div.editWrapper > div.edit */ {
|
||||
@include flex(auto);
|
||||
|
||||
@include flexbox;
|
||||
@include flex-direction(column);
|
||||
|
||||
|
||||
// .cardDetailToolbar {
|
||||
// @include flex(none);
|
||||
// height: $mainCardToolbarHeight;
|
||||
// line-height: $mainCardToolbarHeight;
|
||||
// }
|
||||
|
||||
.content {
|
||||
@include flex(auto);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
@include flex(auto);
|
||||
overflow-y: scroll;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#cardDetailPage {
|
||||
& > .view, & > .edit {
|
||||
& > .view, & > .editWrapper > .edit {
|
||||
@include flexbox();
|
||||
@include flex-direction(column);
|
||||
height: 100%;
|
||||
|
Loading…
Reference in New Issue
Block a user