mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 13:46:57 +02:00
Room Settings: Add "Addresses" section
#412 - Support tap on room id to copy it - Align the leading constraint of the content with the separatorInset.left of the cell. TODO - Support long tap to copy alias, copy links or remove alias
This commit is contained in:
@@ -23,4 +23,6 @@
|
||||
|
||||
@property (nonatomic, getter=isEnabled) BOOL enabled;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *checkBoxLeadingConstraint;
|
||||
|
||||
@end
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
</tableViewCellContentView>
|
||||
<connections>
|
||||
<outlet property="checkBox" destination="2Q4-aT-dLb" id="Rh8-NI-beY"/>
|
||||
<outlet property="checkBoxLeadingConstraint" destination="3Th-py-oa7" id="CpM-em-CVk"/>
|
||||
<outlet property="label" destination="Xx4-AP-OQs" id="9lG-Ne-bbb"/>
|
||||
</connections>
|
||||
</tableViewCell>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
@property (strong, nonatomic) IBOutlet UITextView *textView;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *labelTrailingMinConstraint;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *labelLeadingConstraint;
|
||||
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *textViewWidthConstraint;
|
||||
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *textViewTrailingConstraint;
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
CGFloat maxTextViewWidth = cellWidth - minTextViewPosX - _textViewTrailingConstraint.constant;
|
||||
|
||||
if (_textView.isFirstResponder)
|
||||
if (_textView.isEditable && _textView.isFirstResponder)
|
||||
{
|
||||
// Use the full available width when the field is edited
|
||||
_textViewWidthConstraint.constant = maxTextViewWidth;
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="label" destination="DE7-uC-Oz2" id="xmR-kD-5aJ"/>
|
||||
<outlet property="labelLeadingConstraint" destination="qse-r7-x6e" id="MaG-lx-KhS"/>
|
||||
<outlet property="labelTrailingMinConstraint" destination="oCm-jb-bm0" id="tK1-sl-BS3"/>
|
||||
<outlet property="textView" destination="6xh-yB-9FP" id="dus-5x-CwT"/>
|
||||
<outlet property="textViewTrailingConstraint" destination="hIh-cS-5Lj" id="iVx-5Q-LSe"/>
|
||||
|
||||
Reference in New Issue
Block a user