From 14281de2629b068b4bebbe1eb7a51aa93052d384 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Tue, 18 Feb 2014 11:40:18 -0500 Subject: [PATCH] Fix brittle layout for "Keyboard shortcuts" help. Adding one row to the Navigation table made the Keyboard shortcuts dialog look ridiculous, and it was caused by a design based around float-left-ing that broke down when the size of the "Navigation" box was bigger than the "Composing messages" box. Now we use a div to enclose the top two boxes in the modal. (imported from commit 90288ec288d4cf3d50ed7f5bcb48c8bb3d033f19) --- static/styles/zulip.css | 7 +- templates/zerver/keyboard_shortcuts.html | 202 ++++++++++++----------- 2 files changed, 109 insertions(+), 100 deletions(-) diff --git a/static/styles/zulip.css b/static/styles/zulip.css index d9535c3b87..5409288971 100644 --- a/static/styles/zulip.css +++ b/static/styles/zulip.css @@ -2105,10 +2105,15 @@ div.floating_recipient { } .hotkeys_table { - float: left; width: 245px; margin-right: 10px; font-size: 90%; + display: inline-block; + vertical-align: top; +} + +.hotkeys_table th { + width: 245px; } .hotkeys_table .hotkey { diff --git a/templates/zerver/keyboard_shortcuts.html b/templates/zerver/keyboard_shortcuts.html index c821eb7314..ed7afd0f64 100644 --- a/templates/zerver/keyboard_shortcuts.html +++ b/templates/zerver/keyboard_shortcuts.html @@ -5,117 +5,121 @@

Keyboard shortcuts

- - +
+
+ + + + + - + + - - - - - - - - + + + + + + + - - - - - - - - -
Narrowing
NarrowingsNarrow by stream
sNarrow by stream
SNarrow by topic
SNarrow by topic
vNarrow to all private messages
vNarrow to all private messages
EscReturn to home view
+ + Esc + Return to home view + + - - +
+ + + + + - + + - - - - - - - - - - - - - -
Menus
MenusiOpen message actions menu
iOpen message actions menu
i then EnterEdit a message you sent
?Show these keyboard shortcuts
+ + i then Enter + Edit a message you sent + + + ? + Show these keyboard shortcuts + + +