Explorar o código

change a default height of svg files

utsushiiro %!s(int64=7) %!d(string=hai) anos
pai
achega
8575e3b482

+ 2 - 2
public/images/icons/editor/bold.svg

@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 10.9 14">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 10.9 14">
     <path d="M0,0H5.6c3,0,4.7,1.1,4.7,3.4A3.1,3.1,0,0,1,7.8,6.5,3.7,3.7,0,0,1,10.9,10c0,2.9-1.4,4-4.2,4H0ZM5.2,6.5c2.7,0,2.6-1.4,2.6-3.1S7.9.7,5.6.7H2.3V6.5ZM2.3,13.1H5.7c2.1,0,2.7-1.1,2.7-3.1s0-2.8-3.2-2.8H2.3Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/check.svg

@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 14.4 16">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 14.4 16">
     <path d="M13.9,5.5h0a.5.5,0,0,1,.5.5h0v9a1.1,1.1,0,0,1-1.1,1H1a1.1,1.1,0,0,1-1-1V2.6a1.1,1.1,0,0,1,1-1H8.1a.5.5,0,0,1,.5.5h0a.5.5,0,0,1-.5.5H1V15H13.3V6a.6.6,0,0,1,.6-.5ZM3.6,8.3h0a.5.5,0,0,0,0,.7h0l2.5,2.5a.8.8,0,0,0,1.1,0h.1L14.3.8c.1-.2.1-.6-.2-.7h0a.5.5,0,0,0-.7.1h0L6.6,10.6,4.3,8.3a.5.5,0,0,0-.7,0Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/code.svg

@@ -1,5 +1,5 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 18.1 14">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 18.1 14">
     <path d="M17.8,7.9l-4,3.8a.5.5,0,0,1-.8,0h0a.5.5,0,0,1,0-.8L16.8,7,13,3.2a.6.6,0,0,1,0-.9h0a.5.5,0,0,1,.8,0l4,3.8a1.3,1.3,0,0,1,0,1.8Z"/>
     <path d="M5.2,2.3h0a.7.7,0,0,1,0,.9L1.3,7l3.9,3.9a.6.6,0,0,1,0,.8h0a.6.6,0,0,1-.9,0L.4,7.9a1.3,1.3,0,0,1,0-1.8h0L4.3,2.3A.6.6,0,0,1,5.2,2.3Z"/>
     <path d="M11.5.8,7.8,13.6a.6.6,0,0,1-.7.4h0a.6.6,0,0,1-.5-.8h0L10.3.4a.7.7,0,0,1,.8-.4h0a.6.6,0,0,1,.4.8Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/header.svg

@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 13.7 14">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 13.7 14">
     <path d="M10.2,0h2.9a.6.6,0,0,1,.6.6h0a.6.6,0,0,1-.6.6h-.8V12.8h.8a.6.6,0,0,1,.6.6h0a.6.6,0,0,1-.6.6H10.2a.6.6,0,0,1-.6-.6h0a.6.6,0,0,1,.6-.6H11V7.2H2.7v5.6h.8a.6.6,0,0,1,.6.6h0a.6.6,0,0,1-.6.6H.6a.6.6,0,0,1-.6-.6H0a.6.6,0,0,1,.6-.6h.7V1.2H.6A.6.6,0,0,1,0,.6H0A.6.6,0,0,1,.6,0H3.5a.6.6,0,0,1,.6.6h0a.6.6,0,0,1-.6.6H2.7V6.1H11V1.2h-.8A.6.6,0,0,1,9.6.6h0a.6.6,0,0,1,.6-.6Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/italic.svg

@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 8.6 13.9">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 8.6 13.9">
     <path d="M8.1,0a.6.6,0,0,1,.5.6c0,.3-.2.6-.7.6H6.2L3.8,12.8H5.6c.2,0,.4.3.4.5a.7.7,0,0,1-.7.6H.5c-.3,0-.5-.4-.5-.6s.4-.6.7-.6H2.4L4.9,1.2H3.1A.5.5,0,0,1,2.6.7c0-.3.1-.7.8-.7Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/link.svg

@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 16 16">
     <path d="M4.6,11.4l.4.2h.2v-.2l6.1-6.1a.4.4,0,0,0,.1-.3.5.5,0,0,0-.5-.5h-.3L4.6,10.7a.6.6,0,0,0-.1.4C4.5,11.2,4.5,11.4,4.6,11.4Zm2.8-1a2,2,0,0,1,0,1.1,4.1,4.1,0,0,1-.5.9L4.8,14.3a1.9,1.9,0,0,1-1.5.7,2,2,0,0,1-1.6-.7A1.9,1.9,0,0,1,1,12.8a2,2,0,0,1,.7-1.6L3.6,9.1a2,2,0,0,1,2.2-.5l.8-.8a3.2,3.2,0,0,0-1.4-.3,3.3,3.3,0,0,0-2.3.9L1,10.5A3.2,3.2,0,0,0,.9,15H1a2.9,2.9,0,0,0,2.3,1,3.2,3.2,0,0,0,2.3-1l2-1.9a4.6,4.6,0,0,0,.9-1.7,2.9,2.9,0,0,0-.3-1.8ZM15,1a2.5,2.5,0,0,0-1-.8,3.1,3.1,0,0,0-3.5.8L8.4,2.9a3.1,3.1,0,0,0-.9,1.8,3.2,3.2,0,0,0,.3,1.9l.8-.8a2,2,0,0,1,0-1.1,2.2,2.2,0,0,1,.5-1.1l2.1-1.9.3-.3.4-.2.4-.2h.5a1.9,1.9,0,0,1,1.5.7A2,2,0,0,1,15,3.3a1.9,1.9,0,0,1-.7,1.5l-2,2.1-.7.4a1.5,1.5,0,0,1-.9.2h-.4l-.8.8h1.2L12,8.3l1-.7,2-2.1A3,3,0,0,0,15,1Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/list-ol.svg

@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 23.7 16">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 23.7 16">
     <path d="M23.7,2h0a.8.8,0,0,1-.8.8H6.6A.8.8,0,0,1,5.9,2h0a.7.7,0,0,1,.7-.7H22.9A.7.7,0,0,1,23.7,2ZM6.6,8.7H22.9a.7.7,0,0,0,.8-.7h0a.8.8,0,0,0-.8-.8H6.6a.8.8,0,0,0-.7.8h0A.7.7,0,0,0,6.6,8.7Zm0,5.9H22.9a.7.7,0,0,0,.8-.7h0a.7.7,0,0,0-.8-.7H6.6a.7.7,0,0,0-.7.7h0A.7.7,0,0,0,6.6,14.6ZM1.5.5h0V4h.6V0H1.6L.7.5V.9L1.5.5ZM.9,9.6l.3-.3c.9-.9,1.4-1.5,1.4-2.2A1.2,1.2,0,0,0,1.3,5.9H1.2A1.4,1.4,0,0,0,0,6.5l.3.4a1.2,1.2,0,0,1,.9-.5A.6.6,0,0,1,2,7v.2C2,7.8,1.6,8.3.5,9.3l-.4.4V10H2.7V9.6Zm.9,4.1h0a1,1,0,0,0,.7-.9,1,1,0,0,0-1.1-1,2,2,0,0,0-1.1.3v.4l.8-.2c.5,0,.8.2.8.6s-.5.7-.9.7H.7V14H1c.6,0,1.1.2,1.1.8a.8.8,0,0,1-.9.8l-.9-.3-.2.4a2,2,0,0,0,1.1.3c1,0,1.5-.6,1.5-1.2a1.2,1.2,0,0,0-.9-1.1Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/list-ul.svg

@@ -1,8 +1,8 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 21.6 13.5">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 21.6 13.5">
     <path d="M6.4,1.5H20.9a.7.7,0,0,0,.7-.7h0a.7.7,0,0,0-.7-.7H6.4a.8.8,0,0,0-.8.7h0A.8.8,0,0,0,6.4,1.5Z"/>
     <path d="M6.4,7.5H20.9a.7.7,0,0,0,.7-.7h0a.7.7,0,0,0-.7-.7H6.4a.8.8,0,0,0-.8.7h0A.8.8,0,0,0,6.4,7.5Z"/>
     <path d="M6.4,13.5H20.9a.7.7,0,0,0,.7-.7h0a.7.7,0,0,0-.7-.7H6.4a.8.8,0,0,0-.8.7h0A.8.8,0,0,0,6.4,13.5Z"/>
     <path d="M.9,1.5h1A.8.8,0,0,0,2.8.8h0A.8.8,0,0,0,1.9,0H.9A.8.8,0,0,0,0,.7H0A.8.8,0,0,0,.9,1.5Z"/>
     <path d="M.9,7.5h1a.8.8,0,0,0,.9-.7h0A.8.8,0,0,0,1.9,6H.9a.8.8,0,0,0-.9.7H0A.8.8,0,0,0,.9,7.5Z"/>
     <path d="M.9,13.5h1a.8.8,0,0,0,.9-.7h0a.8.8,0,0,0-.9-.7H.9a.8.8,0,0,0-.9.7H0A.8.8,0,0,0,.9,13.5Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/picture.svg

@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 19 16">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 19 16">
     <path d="M17.8,0H1.2A1.2,1.2,0,0,0,0,1.2V14.8A1.2,1.2,0,0,0,1.2,16H17.8A1.2,1.2,0,0,0,19,14.8V1.2a1.4,1.4,0,0,0-.2-.6.8.8,0,0,0-.4-.4Zm0,14.8H1.2V11.3L5.9,6.7l5,4.9.3.2.5-.2,2.1-1.9,3.9,4h.1v1.1Zm0-2.8L14.3,8.5l-.4-.2h-.4l-2.2,2L6.4,5.5,6,5.3c-.2,0-.4,0-.5.2L1.2,9.7V1.2H17.8V12ZM13.6,5.9h.6a1.1,1.1,0,0,0,.6-1.1,1.2,1.2,0,0,0-1.2-1.1,1.3,1.3,0,0,0-1.2,1.2,1.2,1.2,0,0,0,.4.8,1.1,1.1,0,0,0,.8.3Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/quote.svg

@@ -1,4 +1,4 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 17 12">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 17 12">
     <path d="M5,0H2A2,2,0,0,0,0,2V5A2,2,0,0,0,2,7H5a1.7,1.7,0,0,0,1-.3V10a.9.9,0,0,1-1,1H3v1H5a2,2,0,0,0,2-2V2A2,2,0,0,0,5,0ZM5,6H2A.9.9,0,0,1,1,5V2A.9.9,0,0,1,2,1H5A.9.9,0,0,1,6,2V5A.9.9,0,0,1,5,6Z"/>
     <path d="M15,0H12a2,2,0,0,0-2,2V5a2,2,0,0,0,2,2h3a1.7,1.7,0,0,0,1-.3V10a.9.9,0,0,1-1,1H13v1h2a2,2,0,0,0,2-2V2A2,2,0,0,0,15,0Zm0,6H12a.9.9,0,0,1-1-1V2a.9.9,0,0,1,1-1h3a.9.9,0,0,1,1,1V5A.9.9,0,0,1,15,6Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/strikethrough.svg

@@ -1,5 +1,5 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 19.5 14">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 19.5 14">
     <path d="M5.8,6.2H9C7.2,5.7,6.3,5,6.3,3.8a2.2,2.2,0,0,1,.9-1.9,4.3,4.3,0,0,1,2.5-.7,4.3,4.3,0,0,1,2.5.7,3.1,3.1,0,0,1,1.1,1.6.7.7,0,0,0,.6.4h.3a.7.7,0,0,0,.4-.8A3.6,3.6,0,0,0,13.1,1h0a6.7,6.7,0,0,0-6-.5A3.1,3.1,0,0,0,5.4,1.8a3.6,3.6,0,0,0-.6,2,2.9,2.9,0,0,0,1,2.3Z"/>
     <path d="M12.8,8.7a2,2,0,0,1,.6,1.4,2.4,2.4,0,0,1-1,1.9,3.7,3.7,0,0,1-2.5.7,4.6,4.6,0,0,1-3-.8,3.7,3.7,0,0,1-1.2-2,.6.6,0,0,0-.6-.5H4.9a.7.7,0,0,0-.5.8h0a4.1,4.1,0,0,0,1.5,2.5A6,6,0,0,0,9.8,14a7.5,7.5,0,0,0,2.6-.5,4.9,4.9,0,0,0,1.8-1.4,4.3,4.3,0,0,0,.6-2.2,5,5,0,0,0-.2-1.2Z"/>
     <path d="M.4,7.9A.7.7,0,0,1,0,7.4.4.4,0,0,1,.4,7H19.2a.4.4,0,0,1,.3.6c0,.1-.1.2-.2.3Z"/>
-</svg>
+</svg>

+ 2 - 2
public/images/icons/editor/table.svg

@@ -1,3 +1,3 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 20.3 16">
+<svg xmlns="http://www.w3.org/2000/svg" height="13" viewBox="0 0 20.3 16">
     <path d="M19.1,16H1.2A1.2,1.2,0,0,1,0,14.8V1.2A1.2,1.2,0,0,1,1.2,0H19.1a1.2,1.2,0,0,1,1.2,1.2V14.8A1.2,1.2,0,0,1,19.1,16Zm-5.2-4.3v3.2h5.3V11.7Zm-6.4,0v3.2h5.3V11.7Zm-6.4,0v3.2H6.4V11.7ZM13.9,7.5v3.2h5.3V7.5Zm-6.4,0v3.2h5.3V7.5Zm-6.4,0v3.2H6.4V7.5ZM13.9,3.2V6.4h5.3V3.2Zm-6.4,0V6.4h5.3V3.2Zm-6.4,0V6.4H6.4V3.2Z"/>
-</svg>
+</svg>

+ 12 - 12
src/client/js/components/PageEditor/CodeMirrorEditor.js

@@ -622,7 +622,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Bold"
         onClick={this.createReplaceSelectionHandler('**', '**')}
       >
-        <img src="/images/icons/editor/bold.svg" alt="icon-bold" height="13" />
+        <img src="/images/icons/editor/bold.svg" alt="icon-bold" />
       </Button>,
       <Button
         key="nav-item-italic"
@@ -630,7 +630,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Italic"
         onClick={this.createReplaceSelectionHandler('*', '*')}
       >
-        <img src="/images/icons/editor/italic.svg" alt="icon-italic" height="13" />
+        <img src="/images/icons/editor/italic.svg" alt="icon-italic" />
       </Button>,
       <Button
         key="nav-item-strikethrough"
@@ -638,7 +638,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Strikethrough"
         onClick={this.createReplaceSelectionHandler('~~', '~~')}
       >
-        <img src="/images/icons/editor/strikethrough.svg" alt="icon-strikethrough" height="13" />
+        <img src="/images/icons/editor/strikethrough.svg" alt="icon-strikethrough" />
       </Button>,
       <Button
         key="nav-item-header"
@@ -646,7 +646,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Heading"
         onClick={this.makeHeaderHandler}
       >
-        <img src="/images/icons/editor/header.svg" alt="icon-header" height="13" />
+        <img src="/images/icons/editor/header.svg" alt="icon-header" />
       </Button>,
       <Button
         key="nav-item-code"
@@ -654,7 +654,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Inline Code"
         onClick={this.createReplaceSelectionHandler('`', '`')}
       >
-        <img src="/images/icons/editor/code.svg" alt="icon-code" height="13" />
+        <img src="/images/icons/editor/code.svg" alt="icon-code" />
       </Button>,
       <Button
         key="nav-item-quote"
@@ -662,7 +662,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Quote"
         onClick={this.createAddPrefixToEachLinesHandler('> ')}
       >
-        <img src="/images/icons/editor/quote.svg" alt="icon-quote" height="13" />
+        <img src="/images/icons/editor/quote.svg" alt="icon-quote" />
       </Button>,
       <Button
         key="nav-item-ul"
@@ -670,7 +670,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="List"
         onClick={this.createAddPrefixToEachLinesHandler('- ')}
       >
-        <img src="/images/icons/editor/list-ul.svg" alt="icon-list-ul" height="13" />
+        <img src="/images/icons/editor/list-ul.svg" alt="icon-list-ul" />
       </Button>,
       <Button
         key="nav-item-ol"
@@ -678,7 +678,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Numbered List"
         onClick={this.createAddPrefixToEachLinesHandler('1. ')}
       >
-        <img src="/images/icons/editor/list-ol.svg" alt="icon-list-ol" height="13" />
+        <img src="/images/icons/editor/list-ol.svg" alt="icon-list-ol" />
       </Button>,
       <Button
         key="nav-item-checkbox"
@@ -686,7 +686,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Check List"
         onClick={this.createAddPrefixToEachLinesHandler('- [ ] ')}
       >
-        <img src="/images/icons/editor/check.svg" alt="icon-check" height="13" />
+        <img src="/images/icons/editor/check.svg" alt="icon-check" />
       </Button>,
       <Button
         key="nav-item-link"
@@ -694,7 +694,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Link"
         onClick={this.createReplaceSelectionHandler('[', ']()')}
       >
-        <img src="/images/icons/editor/link.svg" alt="icon-link" height="13" />
+        <img src="/images/icons/editor/link.svg" alt="icon-link" />
       </Button>,
       <Button
         key="nav-item-image"
@@ -702,7 +702,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Image"
         onClick={this.createReplaceSelectionHandler('![', ']()')}
       >
-        <img src="/images/icons/editor/picture.svg" alt="icon-picture" height="13" />
+        <img src="/images/icons/editor/picture.svg" alt="icon-picture" />
       </Button>,
       <Button
         key="nav-item-table"
@@ -710,7 +710,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
         title="Table"
         onClick={this.showHandsonTableHandler}
       >
-        <img src="/images/icons/editor/table.svg" alt="icon-table" height="13" />
+        <img src="/images/icons/editor/table.svg" alt="icon-table" />
       </Button>,
     ];
   }