aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/button
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/button')
-rw-r--r--src/client/views/nodes/button/FontIconBox.scss17
-rw-r--r--src/client/views/nodes/button/FontIconBox.tsx11
2 files changed, 24 insertions, 4 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.scss b/src/client/views/nodes/button/FontIconBox.scss
index 46a499466..0c866988d 100644
--- a/src/client/views/nodes/button/FontIconBox.scss
+++ b/src/client/views/nodes/button/FontIconBox.scss
@@ -38,12 +38,24 @@
&.clickBtn {
cursor: pointer;
+ width: 40px;
}
&.tglBtn {
cursor: pointer;
}
+ &.toolBtn {
+ cursor: pointer;
+ width: 40px;
+ border-radius: 100%;
+
+ svg {
+ width: 60% !important;
+ height: 60%;
+ }
+ }
+
&.menuBtn {
cursor: pointer;
border-radius: 0px;
@@ -109,7 +121,7 @@
}
.list-item:hover {
- background-color:lightgrey;
+ background-color: lightgrey;
}
}
}
@@ -201,5 +213,4 @@
// background:transparent;
// position: fixed;
// }
-// }
-
+// } \ No newline at end of file
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx
index 2c6369e9f..9e7608dc3 100644
--- a/src/client/views/nodes/button/FontIconBox.tsx
+++ b/src/client/views/nodes/button/FontIconBox.tsx
@@ -27,7 +27,8 @@ export enum ButtonType {
ClickButton = "clickBtn",
DoubleButton = "dblBtn",
ToggleButton = "tglBtn",
- ColorButton = "colorBtn"
+ ColorButton = "colorBtn",
+ ToolButton = "toolBtn"
}
export interface ButtonProps extends FieldViewProps {
@@ -254,6 +255,14 @@ export class FontIconBox extends DocComponent<ButtonProps, FontIconDocument>(Fon
</div>
);
break;
+ case ButtonType.ToolButton:
+ button = (
+ <div className={`menuButton ${this.type}`} style={{ opacity: canClick ? 1 : 0.4, backgroundColor: backgroundColor, color: color }}>
+ <FontAwesomeIcon className={`fontIconBox-icon-${this.type}`} icon={this.icon} color={color} />
+ {label}
+ </div>
+ );
+ break;
case ButtonType.ToggleButton:
button = (
<div className={`menuButton ${this.type}`} style={{ opacity: canClick ? 1 : 0.4, backgroundColor: toggle ? backgroundColor : undefined }}>