Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14356660
D9579.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9579.diff
View Options
diff --git a/src/infrastructure/diff/PhabricatorInlineCommentController.php b/src/infrastructure/diff/PhabricatorInlineCommentController.php
--- a/src/infrastructure/diff/PhabricatorInlineCommentController.php
+++ b/src/infrastructure/diff/PhabricatorInlineCommentController.php
@@ -243,7 +243,8 @@
->setUser($this->getRequest()->getUser())
->setSigil('differential-inline-comment-edit-textarea')
->setName('text')
- ->setValue($text);
+ ->setValue($text)
+ ->setDisableFullScreen(true);
}
}
diff --git a/src/view/form/control/PhabricatorRemarkupControl.php b/src/view/form/control/PhabricatorRemarkupControl.php
--- a/src/view/form/control/PhabricatorRemarkupControl.php
+++ b/src/view/form/control/PhabricatorRemarkupControl.php
@@ -3,11 +3,18 @@
final class PhabricatorRemarkupControl extends AphrontFormTextAreaControl {
private $disableMacro = false;
+ private $disableFullScreen = false;
+
public function setDisableMacros($disable) {
$this->disableMacro = $disable;
return $this;
}
+ public function setDisableFullScreen($disable) {
+ $this->disableFullScreen = $disable;
+ return $this;
+ }
+
protected function renderInput() {
$id = $this->getID();
if (!$id) {
@@ -90,15 +97,17 @@
'href' => PhabricatorEnv::getDoclink('Remarkup Reference'),
);
- $actions[] = array(
- 'spacer' => true,
- 'align' => 'right',
- );
+ if (!$this->disableFullScreen) {
+ $actions[] = array(
+ 'spacer' => true,
+ 'align' => 'right',
+ );
- $actions['fa-arrows-alt'] = array(
- 'tip' => pht('Fullscreen Mode'),
- 'align' => 'right',
- );
+ $actions['fa-arrows-alt'] = array(
+ 'tip' => pht('Fullscreen Mode'),
+ 'align' => 'right',
+ );
+ }
$buttons = array();
foreach ($actions as $action => $spec) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 11:02 PM (17 h, 18 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6911059
Default Alt Text
D9579.diff (1 KB)
Attached To
Mode
D9579: Disable full screen mode for inline comments
Attached
Detach File
Event Timeline
Log In to Comment