mirror of
https://github.com/bitwarden/mobile
synced 2026-01-08 11:33:31 +00:00
Add SelectableLabel Custom Renderer to allow copy of note text (#1564)
* Add SelectableLabel Custom Renderer to allow copy of note text - Remove SelectableLabelEffect * Remove editor changes from text custom field
This commit is contained in:
10
src/App/Controls/SelectableLabel.cs
Normal file
10
src/App/Controls/SelectableLabel.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Bit.App.Controls
|
||||
{
|
||||
public class SelectableLabel : Label
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Bit.App.Effects
|
||||
{
|
||||
public class SelectableLabelEffect : RoutingEffect
|
||||
{
|
||||
public SelectableLabelEffect()
|
||||
: base("Bitwarden.SelectableLabelEffect")
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -526,14 +526,9 @@
|
||||
StyleClass="box-header, box-header-platform" />
|
||||
</StackLayout>
|
||||
<StackLayout StyleClass="box-row">
|
||||
<Label
|
||||
<controls:SelectableLabel
|
||||
Text="{Binding Cipher.Notes, Mode=OneWay}"
|
||||
StyleClass="box-value"
|
||||
LineBreakMode="WordWrap">
|
||||
<Label.Effects>
|
||||
<effects:SelectableLabelEffect />
|
||||
</Label.Effects>
|
||||
</Label>
|
||||
StyleClass="box-value"/>
|
||||
</StackLayout>
|
||||
<BoxView StyleClass="box-row-separator" />
|
||||
</StackLayout>
|
||||
|
||||
Reference in New Issue
Block a user