diff --git a/functional_test/test_layout_and_styling.py b/functional_test/test_layout_and_styling.py index 97664ba29a8bf73ce206f8bc637de952a47d2f1a..115494a87a9235ee9b4c36a9c43ea4b6a2cef16c 100644 --- a/functional_test/test_layout_and_styling.py +++ b/functional_test/test_layout_and_styling.py @@ -10,14 +10,14 @@ class LayoutAndStylingTest(FunctionalTest): # She notices the input box is nicely centered inputbox = self.browser.find_element_by_id("id_new_item") self.assertAlmostEqual( - inputbox.location["x"] + inputbox.size["width"] / 2, 754.0, delta=5 + inputbox.location["x"] + inputbox.size["width"] / 2, 512.5, delta=5 ) # She starts a new list and sees the input is nicely # centered there too inputbox.send_keys("testing\n") inputbox = self.browser.find_element_by_id("id_new_item") self.assertAlmostEqual( - inputbox.location["x"] + inputbox.size["width"] / 2, 754.0, delta=5 + inputbox.location["x"] + inputbox.size["width"] / 2, 512.5, delta=5 ) diff --git a/lists/templates/base.html b/lists/templates/base.html index a388aabe0811baedd35caa54f1010958dd038884..a256fa92e9294cc03427f8fe363dab426f553836 100644 --- a/lists/templates/base.html +++ b/lists/templates/base.html @@ -42,7 +42,7 @@ <div class="row"> - <div class="col-md-12 col-md-offset-3"> + <div class="col-md-6 col-md-offset-3 jumbotron"> <div class="text-center"> <h1>{% block header_text %}{% endblock %}</h1> <form method="POST" action="{% block form_action %}{% endblock %}">