2
0
Эх сурвалжийг харах

update expand or contract button

ryoji-s 2 жил өмнө
parent
commit
d92860a8a9

+ 1 - 3
apps/app/src/components/ExpandOrContractButton.tsx

@@ -1,6 +1,5 @@
 import React, { FC } from 'react';
 import React, { FC } from 'react';
 
 
-
 type Props = {
 type Props = {
   isWindowExpanded: boolean,
   isWindowExpanded: boolean,
   contractWindow?: () => void,
   contractWindow?: () => void,
@@ -25,10 +24,9 @@ const ExpandOrContractButton: FC<Props> = (props: Props) => {
   return (
   return (
     <button
     <button
       type="button"
       type="button"
-      className="close"
+      className={`btn ${isWindowExpanded ? 'icon-size-actual' : 'icon-size-fullscreen'}`}
       onClick={isWindowExpanded ? clickContractButtonHandler : clickExpandButtonHandler}
       onClick={isWindowExpanded ? clickContractButtonHandler : clickExpandButtonHandler}
     >
     >
-      <i className={`${isWindowExpanded ? 'icon-size-actual' : 'icon-size-fullscreen'}`} style={{ fontSize: '0.8em' }} aria-hidden="true"></i>
     </button>
     </button>
   );
   );
 };
 };