Просмотр исходного кода

Merge pull request #8191 from overleaf/msm-dictionary-modal-fixes

Dictionary modal fixes

GitOrigin-RevId: 9804619a5addfb53633b6801002fdff221af971a
Timothée Alby 4 лет назад
Родитель
Сommit
21246b9bb0

+ 3 - 1
services/web/frontend/js/features/dictionary/components/dictionary-modal-content.tsx

@@ -94,7 +94,9 @@ export default function DictionaryModalContent({
               ))}
               ))}
           </ul>
           </ul>
         ) : (
         ) : (
-          <i>{t('edit_dictionary_empty')}</i>
+          <p className="dictionary-empty-body text-center">
+            <i>{t('edit_dictionary_empty')}</i>
+          </p>
         )}
         )}
       </Modal.Body>
       </Modal.Body>
 
 

+ 4 - 0
services/web/frontend/stylesheets/app/editor/dictionary.less

@@ -27,3 +27,7 @@
   flex-grow: 1;
   flex-grow: 1;
   padding-right: @padding-xs;
   padding-right: @padding-xs;
 }
 }
+
+.dictionary-empty-body {
+  padding: @padding-md;
+}

+ 1 - 0
services/web/frontend/stylesheets/components/beta-badges.less

@@ -5,6 +5,7 @@
   height: @line-height-computed * 0.75;
   height: @line-height-computed * 0.75;
   line-height: @font-size-small;
   line-height: @font-size-small;
   font-size: @line-height-computed * 0.75;
   font-size: @line-height-computed * 0.75;
+  font-weight: normal;
   text-align: center;
   text-align: center;
   color: #fff;
   color: #fff;