mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 17:53:47 +00:00
optimizations for secure notes
This commit is contained in:
@@ -109,7 +109,7 @@ namespace Bit.App.Pages
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Notes
|
// Notes
|
||||||
NotesCell = new FormEditorCell(Keyboard.Text, 180);
|
NotesCell = new FormEditorCell(Keyboard.Text, _type == CipherType.SecureNote ? 500 : 180);
|
||||||
|
|
||||||
// Folders
|
// Folders
|
||||||
var folderOptions = new List<string> { AppResources.FolderNone };
|
var folderOptions = new List<string> { AppResources.FolderNone };
|
||||||
@@ -458,6 +458,11 @@ namespace Bit.App.Pages
|
|||||||
TopSection.Add(IdPostalCodeCell);
|
TopSection.Add(IdPostalCodeCell);
|
||||||
TopSection.Add(IdCountryCell);
|
TopSection.Add(IdCountryCell);
|
||||||
}
|
}
|
||||||
|
else if(_type == CipherType.SecureNote)
|
||||||
|
{
|
||||||
|
// Name
|
||||||
|
NameCell.NextElement = NotesCell.Editor;
|
||||||
|
}
|
||||||
|
|
||||||
// Make table
|
// Make table
|
||||||
TableRoot = new TableRoot
|
TableRoot = new TableRoot
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ namespace Bit.App.Pages
|
|||||||
NameCell.Entry.Text = Cipher.Name?.Decrypt(Cipher.OrganizationId);
|
NameCell.Entry.Text = Cipher.Name?.Decrypt(Cipher.OrganizationId);
|
||||||
|
|
||||||
// Notes
|
// Notes
|
||||||
NotesCell = new FormEditorCell(Keyboard.Text, 180);
|
NotesCell = new FormEditorCell(Keyboard.Text, Cipher.Type == CipherType.SecureNote ? 500 : 180);
|
||||||
NotesCell.Editor.Text = Cipher.Notes?.Decrypt(Cipher.OrganizationId);
|
NotesCell.Editor.Text = Cipher.Notes?.Decrypt(Cipher.OrganizationId);
|
||||||
|
|
||||||
// Folders
|
// Folders
|
||||||
@@ -400,6 +400,11 @@ namespace Bit.App.Pages
|
|||||||
TopSection.Add(IdPostalCodeCell);
|
TopSection.Add(IdPostalCodeCell);
|
||||||
TopSection.Add(IdCountryCell);
|
TopSection.Add(IdCountryCell);
|
||||||
}
|
}
|
||||||
|
else if(Cipher.Type == CipherType.SecureNote)
|
||||||
|
{
|
||||||
|
// Name
|
||||||
|
NameCell.NextElement = NotesCell.Editor;
|
||||||
|
}
|
||||||
|
|
||||||
// Make table
|
// Make table
|
||||||
TableRoot = new TableRoot
|
TableRoot = new TableRoot
|
||||||
|
|||||||
Reference in New Issue
Block a user