]> cat aescling's git repositories - mastodon.git/commitdiff
WIP <Compose> Refactor; Fin~
authorkibigo! <marrus-sh@users.noreply.github.com>
Fri, 5 Jan 2018 05:17:30 +0000 (21:17 -0800)
committerkibigo! <marrus-sh@users.noreply.github.com>
Fri, 5 Jan 2018 05:17:30 +0000 (21:17 -0800)
app/javascript/flavours/glitch/features/composer/textarea/index.js
app/javascript/flavours/glitch/features/composer/textarea/suggestions/item/index.js
app/javascript/flavours/glitch/reducers/compose.js
app/javascript/flavours/glitch/styles/components/composer.scss
app/javascript/flavours/glitch/styles/components/index.scss
app/javascript/flavours/glitch/util/emoji/index.js

index 1b6f79bbac0019908a3a0a1e2c166938f4d9e86c..955c06098b0baf8104346a4285de64d6b0dedc51 100644 (file)
@@ -32,7 +32,7 @@ const handlers = {
 
   //  When blurring the textarea, suggestions are hidden.
   handleBlur () {
-    this.setState({ suggestionsHidden: true });
+    //this.setState({ suggestionsHidden: true });
   },
 
   //  When the contents of the textarea change, we have to pull up new
index dc057e679988113c72e312683c10ad7e3212a7eb..d2c794ae97b633408f54d5a7ccc567215bf82fb6 100644 (file)
@@ -7,7 +7,7 @@ import React from 'react';
 import AccountContainer from 'flavours/glitch/containers/account_container';
 
 //  Utils.
-import { unicodeMapping } from 'flavours/glitch/util/emoji/emoji_unicode_mapping_light';
+import { unicodeMapping } from 'flavours/glitch/util/emoji';
 import { assignHandlers } from 'flavours/glitch/util/react_helpers';
 
 //  Gets our asset host from the environment, if available.
index c5d7b03ac775bf5b112a5fa73f36cf475a394992..e1f811f6f275cce027b88d2e699cf68e7cc224c7 100644 (file)
@@ -179,7 +179,7 @@ export default function compose(state = initialState, action) {
   case COMPOSE_MOUNT:
     return state.set('mounted', true);
   case COMPOSE_UNMOUNT:
-    return state.set('mounted', false)
+    return state.set('mounted', false);
   case COMPOSE_ADVANCED_OPTIONS_CHANGE:
     return state
       .set('advanced_options',
index 4b09d80d6c67f9972fa584003276a45d8e739655..46df79906fc284f4f0a428ae20b040473a8adfbf 100644 (file)
   &:hover,
   &:focus,
   &:active,
-  &.active { background: darken($ui-secondary-color, 10%) }
+  &.selected { background: darken($ui-secondary-color, 10%) }
 
   & > .emoji {
     img {
       display: block;
       float: left;
       margin-right: 8px;
-      width: 16px;
-      height: 16px;
+      width: 18px;
+      height: 18px;
     }
   }
 }
index 0ce0dafc9e6057c699b2332fe9ce994842c1ff65..ab1359108f14d5c20e76cd93e13bee428260f614 100644 (file)
     text-decoration: none;
     font-size: 14px;
   }
+
+  &.small {
+    border: none;
+    padding: 0;
+
+    & > .account__avatar-wrapper { margin: 0 8px 0 0 }
+
+    & > .display-name {
+      display: block;
+      padding: 0;
+      height: auto;
+      text-overflow: ellipsis;
+      overflow: hidden;
+      white-space: nowrap;
+
+      & > strong {
+        display: inline;
+        font-size: inherit;
+        line-height: inherit;
+      }
+
+      & > span {
+        display: inline;
+        color: lighten($ui-base-color, 36%);
+        font-size: inherit;
+        line-height: inherit;
+
+        &::before { content: " " }
+      }
+    }
+  }
 }
 
 .account__wrapper {
index 31c3e14cace68b5a3c2405cc0d25dff6852989c2..c6416db2d3e240ece741265ff7d257db2e41ff47 100644 (file)
@@ -70,6 +70,7 @@ const emojify = (str, customEmojis = {}) => {
 };
 
 export default emojify;
+export { unicodeMapping };
 
 export const buildCustomEmojis = (customEmojis) => {
   const emojis = [];