]> cat aescling's git repositories - mastodon.git/commitdiff
Make shortcode emojis work, make getting started area scrollable
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 5 Jan 2017 02:14:33 +0000 (03:14 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 5 Jan 2017 02:14:33 +0000 (03:14 +0100)
app/assets/javascripts/components/emoji.jsx
app/assets/javascripts/components/features/getting_started/index.jsx
app/assets/javascripts/extras.jsx
app/assets/stylesheets/components.scss

index a06c759531347e419a1d4d811cd3f8d284635c16..c93c07c74b283394c601d592fa059dc801963842 100644 (file)
@@ -5,5 +5,5 @@ emojione.sprites      = false;
 emojione.imagePathPNG = '/emoji/';
 
 export default function emojify(text) {
-  return emojione.unicodeToImage(text);
+  return emojione.toImage(text);
 };
index 77253dd731cc8dc39568e7c27c17dd08a04a706a..51f165f9e2d0b6a3dd3effae94d4bfc9257ba0ec 100644 (file)
@@ -43,10 +43,12 @@ const GettingStarted = ({ intl, me }) => {
         {followRequests}
       </div>
 
-      <div className='static-content getting-started'>
-        <p><FormattedMessage id='getting_started.about_addressing' defaultMessage='You can follow people if you know their username and the domain they are on by entering an e-mail-esque address into the form at the top of the sidebar.' /></p>
-        <p><FormattedMessage id='getting_started.about_shortcuts' defaultMessage='If the target user is on the same domain as you, just the username will work. The same rule applies to mentioning people in statuses.' /></p>
-        <p><FormattedMessage id='getting_started.about_developer' defaultMessage='The developer of this project can be followed as Gargron@mastodon.social' /></p>
+      <div className='scrollable optionally-scrollable'>
+        <div className='static-content getting-started'>
+          <p><FormattedMessage id='getting_started.about_addressing' defaultMessage='You can follow people if you know their username and the domain they are on by entering an e-mail-esque address into the form at the top of the sidebar.' /></p>
+          <p><FormattedMessage id='getting_started.about_shortcuts' defaultMessage='If the target user is on the same domain as you, just the username will work. The same rule applies to mentioning people in statuses.' /></p>
+          <p><FormattedMessage id='getting_started.about_developer' defaultMessage='The developer of this project can be followed as Gargron@mastodon.social' /></p>
+        </div>
       </div>
     </Column>
   );
index b9f8e6842cd43c28c92fb4e184eaaa626fe6eb1e..c1df182deafe20470c8a417ef449fc6f641f8620 100644 (file)
@@ -19,8 +19,6 @@ $(() => {
   });
 
   $('.webapp-btn').on('click', e => {
-    console.log(e);
-
     if (e.button === 0) {
       e.preventDefault();
       window.location.href = $(e.target).attr('href');
index c6441924321cb23e36bdb7f9eba347d0892a046e..4f03f94e542fa28066f580ebaca0bd132ba28193 100644 (file)
   overflow-x: hidden;
   flex: 1 1 auto;
   -webkit-overflow-scrolling: touch;
+
+  &.optionally-scrollable {
+    overflow-y: auto;
+  }
 }
 
 .column-back-button {
 }
 
 .getting-started {
+  box-sizing: border-box;
   overflow-y: auto;
   padding-bottom: 235px;
   background: image-url('mastodon-getting-started.png') no-repeat 0 100% local;
+  height: 100%;
 }