# HG changeset patch # User Daniel Dourvaris # Date 2020-07-16 10:48:00 # Node ID 5be9b6391c0ab48069846a16586118fe8d34b9bd # Parent 824dc51fa2c0f3954efbcf127eb877947618f4d7 ui: added secondary action instead of two buttons on files page. - also made improvements for secondary dropdown actions in pull-requests diff --git a/rhodecode/public/css/buttons.less b/rhodecode/public/css/buttons.less --- a/rhodecode/public/css/buttons.less +++ b/rhodecode/public/css/buttons.less @@ -264,16 +264,15 @@ input[type="button"] { .btn-action-switcher-container{ position: absolute; - top: 30px; - left: -82px; + top: 100%; + right: 0; } .btn-action-switcher { display: block; position: relative; z-index: 300; - min-width: 240px; - max-width: 500px; + max-width: 600px; margin-top: 4px; margin-bottom: 24px; font-size: 14px; @@ -283,6 +282,7 @@ input[type="button"] { border: 1px solid @grey4; border-radius: 3px; box-shadow: @dropdown-shadow; + overflow: auto; li { display: block; diff --git a/rhodecode/templates/files/files_browser.mako b/rhodecode/templates/files/files_browser.mako --- a/rhodecode/templates/files/files_browser.mako +++ b/rhodecode/templates/files/files_browser.mako @@ -17,14 +17,30 @@ % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): -
- - ${_('Upload File')} - - - ${_('Add File')} - -
+ +
+ +
+ % endif % if c.enable_downloads: diff --git a/rhodecode/templates/files/files_upload.mako b/rhodecode/templates/files/files_upload.mako --- a/rhodecode/templates/files/files_upload.mako +++ b/rhodecode/templates/files/files_upload.mako @@ -61,11 +61,11 @@ ##${h.secure_form(form_url, id='eform', enctype="multipart/form-data", request=request)}
-
    +
    • @@ -79,7 +79,7 @@
      -
      +

      diff --git a/rhodecode/templates/pullrequests/pullrequest_show.mako b/rhodecode/templates/pullrequests/pullrequest_show.mako --- a/rhodecode/templates/pullrequests/pullrequest_show.mako +++ b/rhodecode/templates/pullrequests/pullrequest_show.mako @@ -517,7 +517,7 @@