Przeglądaj źródła

- Delete class name inside SVGcomponent.

oshikishintaro 5 lat temu
rodzic
commit
c15277e988

+ 6 - 8
src/client/js/components/Icons/SidebarDockIcon.jsx

@@ -8,14 +8,12 @@ const SidebarDockIcon = () => (
     viewBox="0 0 23 23"
   >
     <rect width="23" height="23" fillOpacity="0" />
-    <g className="sidebar-dock-icon">
-      <path
-        d="M20.86,3.92a.64.64,0,0,1,.64.63v13.9a.64.64,0,0,1-.64.63H2.14a.64.64,0,0,
-        1-.64-.63V4.55a.64.64,0,0,1,.64-.63H20.86m0-1.5H2.14A2.13,2.13,0,0,0,0,4.55v13.9a2.13,
-        2.13,0,0,0,2.14,2.13H20.86A2.13,2.13,0,0,0,23,18.45V4.55a2.13,2.13,0,0,0-2.14-2.13Z"
-      />
-      <rect x="7.49" y="3.05" width="1.2" height="16.91" />
-    </g>
+    <path
+      d="M20.86,3.92a.64.64,0,0,1,.64.63v13.9a.64.64,0,0,1-.64.63H2.14a.64.64,0,0,
+      1-.64-.63V4.55a.64.64,0,0,1,.64-.63H20.86m0-1.5H2.14A2.13,2.13,0,0,0,0,4.55v13.9a2.13,
+      2.13,0,0,0,2.14,2.13H20.86A2.13,2.13,0,0,0,23,18.45V4.55a2.13,2.13,0,0,0-2.14-2.13Z"
+    />
+    <rect x="7.49" y="3.05" width="1.2" height="16.91" />
   </svg>
 
 );

+ 13 - 15
src/client/js/components/Icons/SidebarDrawerIcon.jsx

@@ -8,21 +8,19 @@ const SidebarDrawerIcon = () => (
     viewBox="0 0 23 23"
   >
     <rect width="23" height="23" fillOpacity="0" />
-    <g className="sidebar-drawer-icon">
-      <path d="M20.9,3.9c0.3,0,0.6,0.3,0.6,0.6v13.9c0,0.3-0.3,0.6-0.6,0.6H2.1c-0.3,0-0.6-0.3-0.6-0.6V4.5c0-0.3,0.3-0.6,0.6-0.6H20.9
-        M20.9,2.4H2.1C1,2.4,0,3.4,0,4.5c0,0,0,0,0,0v13.9c0,1.2,1,2.1,2.1,2.1c0,0,0,0,0,0h18.7c1.2,0,2.1-0.9,2.1-2.1c0,0,0,0,0,0V4.5
-        C23,3.4,22,2.4,20.9,2.4C20.9,2.4,20.9,2.4,20.9,2.4z"
-      />
-      <rect x="7.5" y="3.9" width="1.2" height="0.8" />
-      <rect x="7.5" y="15.3" width="1.2" height="1.5" />
-      <rect x="7.5" y="12.3" width="1.2" height="1.5" />
-      <rect x="7.5" y="9.2" width="1.2" height="1.6" />
-      <rect x="7.5" y="6.1" width="1.2" height="1.6" />
-      <rect x="7.5" y="18.4" width="1.2" height="0.8" />
-      <path d="M15.1,14.9c-0.2,0-0.3-0.1-0.4-0.2l-2.8-2.8c-0.2-0.2-0.2-0.6,0-0.8l2.8-2.8c0.2-0.2,0.6-0.2,0.9,0s0.2,0.6,0,0.9l-2.4,2.4
-        l2.4,2.4c0.2,0.2,0.2,0.6,0,0.9C15.4,14.8,15.3,14.9,15.1,14.9z"
-      />
-    </g>
+    <path d="M20.9,3.9c0.3,0,0.6,0.3,0.6,0.6v13.9c0,0.3-0.3,0.6-0.6,0.6H2.1c-0.3,0-0.6-0.3-0.6-0.6V4.5c0-0.3,0.3-0.6,0.6-0.6H20.9
+      M20.9,2.4H2.1C1,2.4,0,3.4,0,4.5c0,0,0,0,0,0v13.9c0,1.2,1,2.1,2.1,2.1c0,0,0,0,0,0h18.7c1.2,0,2.1-0.9,2.1-2.1c0,0,0,0,0,0V4.5
+      C23,3.4,22,2.4,20.9,2.4C20.9,2.4,20.9,2.4,20.9,2.4z"
+    />
+    <rect x="7.5" y="3.9" width="1.2" height="0.8" />
+    <rect x="7.5" y="15.3" width="1.2" height="1.5" />
+    <rect x="7.5" y="12.3" width="1.2" height="1.5" />
+    <rect x="7.5" y="9.2" width="1.2" height="1.6" />
+    <rect x="7.5" y="6.1" width="1.2" height="1.6" />
+    <rect x="7.5" y="18.4" width="1.2" height="0.8" />
+    <path d="M15.1,14.9c-0.2,0-0.3-0.1-0.4-0.2l-2.8-2.8c-0.2-0.2-0.2-0.6,0-0.8l2.8-2.8c0.2-0.2,0.6-0.2,0.9,0s0.2,0.6,0,0.9l-2.4,2.4
+      l2.4,2.4c0.2,0.2,0.2,0.6,0,0.9C15.4,14.8,15.3,14.9,15.1,14.9z"
+    />
   </svg>
 );
 

+ 2 - 2
src/client/js/components/Navbar/PersonalDropdown.jsx

@@ -87,13 +87,13 @@ const PersonalDropdown = (props) => {
   /* eslint-disable react/prop-types */
   const DrawerIcon = props => (
     <>
-      <div id={props.id} className="px-2 sidebar-drawer-icon"><SidebarDrawerIcon /></div>
+      <div id={props.id} className="px-2 sidebar-mode-icon"><SidebarDrawerIcon /></div>
       <UncontrolledTooltip placement="bottom" fade={false} target={props.id}>Drawer</UncontrolledTooltip>
     </>
   );
   const DockIcon = props => (
     <>
-      <div id={props.id} className="px-2 sidebar-dock-icon"><SidebarDockIcon /></div>
+      <div id={props.id} className="px-2 sidebar-mode-icon"><SidebarDockIcon /></div>
       <UncontrolledTooltip placement="bottom" fade={false} target={props.id}>Dock</UncontrolledTooltip>
     </>
   );

+ 1 - 2
src/client/styles/scss/theme/_apply-colors.scss

@@ -82,8 +82,7 @@ pre:not(.hljs):not(.CodeMirror-line) {
 .grw-personal-dropdown {
   .lightmode-icon,
   .darkmode-icon,
-  .sidebar-dock-icon,
-  .sidebar-drawer-icon {
+  .sidebar-mode-icon {
     fill: $color-global;
   }