Skip to content

Commit

Permalink
fix(login): RWD issue
Browse files Browse the repository at this point in the history
* Remove the quote text on mobile
* Remove the unnecessary padding in lists
* Correct some flex cases
  • Loading branch information
pan93412 committed Oct 4, 2024
1 parent cd48cb1 commit 8850ada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions assets/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ ul.credit {

list-style: none;
margin-bottom: 0;
padding-left: 0;
}

// overrides
Expand Down
6 changes: 3 additions & 3 deletions templates/security/login.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
{% block title %}登入{% endblock %}

{% block body %}
<main class="w-40 container-sm v-center">
<main class="w-75 w-md-40 container-sm v-center">
<div class="d-flex justify-content-between align-items-end">
<h1 class="mb-4" aria-label="資料庫練功房 - 登入">
<img src="{{ asset('branding.svg') }}" alt="資料庫練功房" height="72px" />
</h1>

<p class="opacity-75 small fst-italic">
<p class="opacity-75 small fst-italic d-none d-md-block">
雙雙瓦雀行書案,點點楊花入硯池<br>
閒坐小窗學SQL,不知春去幾多時
</p>
Expand Down Expand Up @@ -51,7 +51,7 @@
value="{{ csrf_token('authenticate') }}"
>

<div class="d-flex gap-3 justify-content-between align-items-end">
<div class="d-flex flex-column flex-md-row gap-3 justify-content-md-between align-items-md-end">
<button class="btn btn-primary" type="submit">
登入
</button>
Expand Down

0 comments on commit 8850ada

Please sign in to comment.