From 027a08ea3dbdd9721f4c83b939d818e97f4a2381 Mon Sep 17 00:00:00 2001 From: Dillon Dumesnil Date: Wed, 5 Jan 2022 09:31:09 -0800 Subject: [PATCH] fix: AA-1114: Set a max width on Text Input answers We saw a bug where on mobile devices or smaller web browser windows the input text field could stretch beyond the visible screen. By setting the max width, we will always contain it to the size of its parent element. --- common/lib/capa/capa/templates/textline.html | 5 +---- common/lib/capa/capa/tests/test_input_templates.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/common/lib/capa/capa/templates/textline.html b/common/lib/capa/capa/templates/textline.html index 58bba7d093..f927d732f7 100644 --- a/common/lib/capa/capa/templates/textline.html +++ b/common/lib/capa/capa/templates/textline.html @@ -23,10 +23,7 @@ % for description_id, description_text in response_data['descriptions'].items():

${description_text}

% endfor -