From 97d3c792757e722e7edb218d2e59b7f1589fe283 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 11 May 2017 11:00:20 +0530 Subject: [PATCH] Ensure button text is not wrapped --- src/pyj/widgets.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/widgets.pyj b/src/pyj/widgets.pyj index c9305156b0..ea3b78e791 100644 --- a/src/pyj/widgets.pyj +++ b/src/pyj/widgets.pyj @@ -30,7 +30,7 @@ create_button.style = build_rule('a.calibre-push-button', border_radius='1em', background_clip='padding-box', background_color=get_color('button-start'), background_image='linear-gradient(to bottom, {}, {})'.format(get_color('button-start'), get_color('button-end')), padding='0.5ex 1em', color=get_color('button-text'), cursor='pointer', font_size='inherit', display='inline-flex', align_items='center', - box_shadow='0px 2px 1px rgba(50, 50, 50, 0.75)', + box_shadow='0px 2px 1px rgba(50, 50, 50, 0.75)', white_space='nowrap' ) create_button.style += build_rule('a.calibre-push-button:hover', transform='scale(1.2)') create_button.style += build_rule('a.calibre-push-button:active', transform='scale(2)')