mirror of https://github.com/zulip/zulip.git
Remove font size menu.
This, in effect, reverts ff0c27ccb177ddc69a31bf8997d31e7cfb5b78b5. The rationale here is that actually we look pretty good with the browser's own zoom/font-size-resize in Chrome and Firefox, and it's better to let the browser handle these kinds of changes than us. (imported from commit 5949b57bdaf20d4fdf2bbd7ed89d1285a8b8e453)
This commit is contained in:
parent
0fa857d524
commit
eaad981def
|
@ -66,14 +66,6 @@
|
|||
<i class="icon-pencil"></i> Message formatting
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-submenu">
|
||||
<a href="#" id="font_size_menu_link">
|
||||
<i class="icon-font"></i> Font size
|
||||
</a>
|
||||
<ul class="dropdown-menu" id="font_size_menu">
|
||||
{# Entries filled in by JavaScript #}
|
||||
</ul>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li title="Feedback">
|
||||
<a href="#feedback" class="feedback">
|
||||
|
|
|
@ -1576,41 +1576,6 @@ exports.set_presence_list = function (users, presence_info) {
|
|||
});
|
||||
};
|
||||
|
||||
function add_font_size(offset, name) {
|
||||
var style = {
|
||||
'font-size': (14 + 3*offset) + 'px',
|
||||
'line-height': (20 + 3*offset) + 'px'
|
||||
};
|
||||
|
||||
var entry = $('<li>').append(
|
||||
$('<a href="#">')
|
||||
.text(name)
|
||||
.css(style)
|
||||
.click(function (e) {
|
||||
$('body').css(style);
|
||||
scroll_to_selected();
|
||||
e.preventDefault();
|
||||
}));
|
||||
|
||||
$('#font_size_menu').append(entry);
|
||||
}
|
||||
|
||||
$(function () {
|
||||
// Create font size menu entries
|
||||
add_font_size(-1, 'Small' );
|
||||
add_font_size( 0, 'Medium' );
|
||||
add_font_size( 1, 'Large' );
|
||||
add_font_size( 3, 'Larger' );
|
||||
add_font_size( 5, 'Largest');
|
||||
|
||||
// The entry that produces the submenu has a href
|
||||
// for style, but we don't want to navigate on click.
|
||||
$('#font_size_menu_link').click(function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Save the compose content cursor position and restore when we
|
||||
// shift-tab back in (see hotkey.js).
|
||||
var saved_compose_cursor = 0;
|
||||
|
|
Loading…
Reference in New Issue