@@ -56,7 +56,7 @@ const handleTextEdit = (event, index) => {
5656 </script >
5757<template >
5858 <div id =" target-2" class =" summaries-section" :class =" { disabled: disabled }" >
59- <h2 data-testid =" tutor-summaries-title" class =" title is-4 mt-4" >
59+ <h2 data-testid =" tutor-summaries-title" class =" title is-4 is-size-5-mobile mt-4" >
6060 2 - {{ $t('tutor.summaries.title') }}
6161 </h2 >
6262 <p class =" subtitle is-6" >
@@ -66,20 +66,9 @@ const handleTextEdit = (event, index) => {
6666 <h2 class =" title is-6 mt-4" >
6767 {{ Object.values(files)[index]?.name || $t('tutor.summaries.noFileName') }}
6868 </h2 >
69- <div class =" is-flex" >
70- <p
71- :id =" `summary_${index}`"
72- class =" input summary"
73- :contenteditable =" editableParagraphs[index]"
74- @keydown =" preventLineBreaks"
75- @paste =" sanitizePaste"
76- @blur =" handleTextEdit($event, index)"
77- :class =" { validated: !editableParagraphs[index] }"
78- >
79- {{ summary }}
80- </p >
81- <div class =" mt-2 ml-2" >
82- <button class =" button is-white mt-2" @click =" toggleEdit(index, true)" >
69+ <div class =" is-flex is-flex-wrap-wrap" >
70+ <div class =" mt-2 ml-auto is-flex is-align-items-center" >
71+ <button class =" button is-white" @click =" toggleEdit(index, true)" >
8372 <span class =" icon is-small" >
8473 <EditIcon />
8574 </span >
@@ -97,6 +86,17 @@ const handleTextEdit = (event, index) => {
9786 <span >{{ editableParagraphs[index] ? $t('validate') : $t('validated') }}</span >
9887 </button >
9988 </div >
89+ <p
90+ :id =" `summary_${index}`"
91+ class =" input summary"
92+ :contenteditable =" editableParagraphs[index]"
93+ @keydown =" preventLineBreaks"
94+ @paste =" sanitizePaste"
95+ @blur =" handleTextEdit($event, index)"
96+ :class =" { validated: !editableParagraphs[index] }"
97+ >
98+ {{ summary }}
99+ </p >
100100 </div >
101101 </div >
102102 <div class =" is-flex is-justify-content-end mt-4" >
0 commit comments