ソースを参照

Enphasize keyboard shortcuts with a dedicated style

Also add release notes related to the #387 merge.

-- Fluctuat nec mergitur
Maxime Quandalle 9 年 前
コミット
5763714d22

+ 5 - 4
History.md

@@ -4,12 +4,13 @@ This release features:
 
 * Card import from Trello
 * Autocompletion in the minicard editor. Start with <kbd>@</kbd> to start the
-  a board member autocompletion, or <kbd>#</kbd> for a label.
+  a board member autocompletion, or <kbd>#</kbd> for a label;
 * Accelerate the initial page rendering by sending the data on the intial HTTP
-  response instead of waiting for the DDP connection to open.
+  response instead of waiting for the DDP connection to open;
+* Support images attachments copy pasting.
 
-Thanks to GitHub users AlexanderS, fisle, FuzzyWuzzie, ndarilek, and
-xavierpriour for their contributions.
+Thanks to GitHub users AlexanderS, fisle, floatinghotpot, FuzzyWuzzie, ndarilek,
+and xavierpriour for their contributions.
 
 # v0.9
 

+ 1 - 1
client/components/cards/attachments.jade

@@ -7,7 +7,7 @@ template(name="cardAttachmentsPopup")
       a.js-upload-clipboard-image {{_ 'clipboard'}}
 
 template(name="previewClipboardImagePopup")
-  p {{_ "paste-or-dragdrop"}}
+  p <kbd>Ctrl</kbd>+<kbd>V</kbd> {{_ "paste-or-dragdrop"}}
   img.preview-clipboard-image()
   button.primary.js-upload-pasted-image {{_ 'upload'}}
 

+ 0 - 5
client/components/main/keyboardShortcuts.styl

@@ -14,11 +14,6 @@
         padding: 5px 8px
         margin: 5px
         font-size: 18px
-        font-weight: bold
-        background: white
-        border-radius: 3px
-        border: 1px solid darken(white, 10%)
-        box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15)
 
     .shortcuts-list-item-action
       font-size: 1.4em

+ 9 - 0
client/components/main/layouts.styl

@@ -172,6 +172,15 @@ dl, dt
 dd
   margin: 0 0 16px 24px
 
+kbd
+  padding: 1px 3px
+  margin: 3px
+  font-weight: bold
+  background: darken(white, 2%)
+  border-radius: 3px
+  border: 1px solid darken(white, 10%)
+  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15)
+
 .clear
   clear: both
 

+ 1 - 1
i18n/en.i18n.json

@@ -184,7 +184,7 @@
     "page-maybe-private": "This page may be private. You may be able to view it by <a href='%s'>logging in</a>.",
     "page-not-found": "Page not found.",
     "password": "Password",
-    "paste-or-dragdrop": "Ctrl-V to paste, or drag & drop image file to it (image only)",
+    "paste-or-dragdrop": "to paste, or drag & drop image file to it (image only)",
     "preview": "Preview",
     "previewClipboardImagePopup-title": "Preview",
     "previewAttachedImagePopup-title": "Preview",