mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 08:13:13 +02:00
Ensure button text is not wrapped
This commit is contained in:
parent
739f595e3d
commit
97d3c79275
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ def create_button(text, icon=None, action=None, tooltip=None, highlight=False, d
|
|||
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)')
|
||||
|
|
|
|||
Loading…
Reference in a new issue