summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2016-03-09 23:43:42 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2016-03-09 23:43:42 +0500
commitf72db35781b809f4bae49917426a4860f50ef35f (patch)
tree985cc9c24ab3f15e9795ca9c4a4bdcc9718a307e /web
parent9f94a42a07cf52530119730533bbea2730d3d532 (diff)
downloadchat-f72db35781b809f4bae49917426a4860f50ef35f.tar.gz
chat-f72db35781b809f4bae49917426a4860f50ef35f.tar.bz2
chat-f72db35781b809f4bae49917426a4860f50ef35f.zip
Disabling help stuff and moving preview out of it
Diffstat (limited to 'web')
-rw-r--r--web/react/components/textbox.jsx24
-rw-r--r--web/sass-files/sass/partials/_post.scss31
2 files changed, 31 insertions, 24 deletions
diff --git a/web/react/components/textbox.jsx b/web/react/components/textbox.jsx
index 46900e436..c8c0c071e 100644
--- a/web/react/components/textbox.jsx
+++ b/web/react/components/textbox.jsx
@@ -194,7 +194,6 @@ export default class Textbox extends React.Component {
defaultMessage='>quote'
/>
</span>
- {previewLink}
</div>
);
@@ -230,16 +229,19 @@ export default class Textbox extends React.Component {
>
</div>
{helpText}
- <a
- target='_blank'
- href='http://docs.mattermost.com/help/getting-started/messaging-basics.html'
- className='textbox-help-link'
- >
- <FormattedMessage
- id='textbox.help'
- defaultMessage='Help'
- />
- </a>
+ <div className='help__text'>
+ {previewLink}
+ <a
+ target='_blank'
+ href='http://docs.mattermost.com/help/getting-started/messaging-basics.html'
+ className='textbox-help-link'
+ >
+ <FormattedMessage
+ id='textbox.help'
+ defaultMessage='Help'
+ />
+ </a>
+ </div>
</div>
);
}
diff --git a/web/sass-files/sass/partials/_post.scss b/web/sass-files/sass/partials/_post.scss
index 39cebe856..209f8e27f 100644
--- a/web/sass-files/sass/partials/_post.scss
+++ b/web/sass-files/sass/partials/_post.scss
@@ -58,23 +58,27 @@ body.ios {
box-shadow: none;
white-space: normal;
}
- .textbox-help-link {
+ .help__text {
+ right: 0;
position: absolute;
z-index: 3;
bottom: -23px;
font-size: 13px;
cursor: pointer;
}
- .textbox-help-link {
- right: 0;
+ .textbox-preview-link {
+ margin-right: 8px;
}
min-height:36px;
}
.help_format_text {
+ display: none !important;
position: absolute;
bottom: -23px;
- right: 40px;
+ left: 0px;
+ overflow: hidden;
+ text-overflow: ellipsis;
font-size: 0.85em;
@include opacity(0);
@include single-transition(all 0.2s ease);
@@ -391,15 +395,16 @@ body.ios {
top: -5px;
position: relative;
}
- .msg-typing {
- min-height: 25px;
- display: block;
- @include opacity(0.7);
- white-space: nowrap;
- width: 80%;
- overflow: hidden;
- text-overflow: ellipsis;
- }
+ }
+ .msg-typing {
+ display: block;
+ @include opacity(0.7);
+ white-space: nowrap;
+ margin-bottom: 5px;
+ overflow: hidden;
+ font-size: 0.95em;
+ text-overflow: ellipsis;
+ height: 20px;
}
}