Преглед на файлове

fix docs/locales code escaping and css overflow

Artur Paikin преди 5 години
родител
ревизия
5a0055c15d
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 1 1
      website/inject.js
  2. 3 0
      website/themes/uppy/source/css/_page.scss

+ 1 - 1
website/inject.js

@@ -202,7 +202,7 @@ function injectLocaleList () {
 
     const languageName = LocaleCode.getLanguageName(localeNameWithDash)
     const countryName = LocaleCode.getCountryName(localeNameWithDash)
-    const npmPath = `<code><a href="https://www.npmjs.com/package/@uppy/locales">@uppy/locales</a>/lib/${localeName}</code>`
+    const npmPath = `<code class="raw"><a href="https://www.npmjs.com/package/@uppy/locales">@uppy/locales</a>/lib/${localeName}</code>`
     const cdnPath = `[\`${localeName}.min.js\`](https://transloadit.edgly.net/releases/uppy/locales/v${localePackageVersion}/${localeName}.min.js)`
     const githubSource = `[\`${localeName}.js\`](https://github.com/transloadit/uppy/blob/master/packages/%40uppy/locales/src/${localeName}.js)`
     const mdTableRow = `| ${languageName}<br/> <small>${countryName}</small>${variant ? `<br /><small>(${variant})</small>` : ''} | ${npmPath} | ${cdnPath} | ✏️ ${githubSource} |`

+ 3 - 0
website/themes/uppy/source/css/_page.scss

@@ -360,6 +360,9 @@
 .page-docs-locales table {
   overflow: visible;
 }
+.page-docs-locales .highlight table {
+  overflow: scroll;
+}
 .page-docs-locales table td {
   white-space: nowrap;
   font-size: 90%;