Skip to content

[5.1] French login form misaligned #16050

Closed

Description

@williamdes

image

NB: I use LastPass

And Choix du serveur : is not in bold

Activity

  1. added
    UI
    on Mar 28, 2020
  2. added this to the 5.1.0 milestone on Mar 28, 2020
  3. added
    Bug
    on Mar 28, 2020
  4. omermujtaba18 commented on Apr 1, 2020

    @omermujtaba18

    I would like to give this a try. Is this up for grabs? Any pointers?

  5. williamdes commented on Apr 2, 2020

    @williamdes
    MemberAuthor

    @omermujtaba18 If you want to solve this one you can go ahead

    Branch: master

    Here is my work in progress but it did not work, hope it helps you

    diff --git a/templates/login/form.twig b/templates/login/form.twig
    index 1dbf346a17..2d3c604dee 100644
    --- a/templates/login/form.twig
    +++ b/templates/login/form.twig
    @@ -32,7 +32,7 @@
         </legend>
     
         {% if is_arbitrary_server_allowed %}
    -      <div class="item form-group">
    +      <div class="item form-row">
             <label for="input_servername" title="{% trans 'You can enter hostname/IP address and port separated by space.' %}">
               {% trans 'Server:' %}
             </label>
    @@ -42,7 +42,7 @@
         {% endif %}
     
         <div class="item form-row">
    -      <label for="input_username" class="col-3 d-flex align-items-center">
    +      <label for="input_username" class="col-4">
             {% trans 'Username:' %}
           </label>
           <div class="col-8">
    @@ -51,7 +51,7 @@
         </div>
     
         <div class="item form-row">
    -      <label for="input_password" class="col-3 d-flex align-items-center">
    +      <label for="input_password" class="col-4">
             {% trans 'Password:' %}
           </label>
           <div class="col-8">
    @@ -61,10 +61,10 @@
     
         {% if has_servers %}
           <div class="item">
    -        <label for="select_server">
    +        <label for="select_server" class="col-4">
               {% trans 'Server choice:' %}
             </label>
    -        <select name="server" id="select_server"{{ is_arbitrary_server_allowed ? ' onchange="document.forms[\'login_form\'].elements[\'pma_servername\'].value = \'\'"' }}>
    +        <select name="server"  class="form-control" id="select_server"{{ is_arbitrary_server_allowed ? ' onchange="document.forms[\'login_form\'].elements[\'pma_servername\'].value = \'\'"' }}>
               {{ server_options|raw }}
             </select>
           </div>
  6. ankush-0x90 commented on Apr 4, 2020

    @ankush-0x90
    Contributor

    Is this the issue we are having ?

    Screenshot from 2020-04-04 20-52-23

  7. williamdes commented on Apr 4, 2020

    @williamdes
    MemberAuthor

    Not quite, but it is maybe the same issue

  8. ankush-0x90 commented on Apr 4, 2020

    @ankush-0x90
    Contributor

    If it is the same issue, please consider reviewing my pull request :)

  9. ankush-0x90 commented on Apr 4, 2020

    @ankush-0x90
    Contributor

    If it is the same issue, please consider reviewing my pull request

    My bad, I reverted someone's work on _common.scss
    Need another approach..

  10. self-assigned this
    on Apr 5, 2020
  11. added a commit that references this issue on Apr 5, 2020
    bc128f7
  12. locked as resolved and limited conversation to collaborators on Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugUIgood first issuenewbie

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions