Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

made trigger button antd component

t1ennea3fa532d2e8e
diff --git a/web/components/action-buttons/ActionButtonMenu/ActionButtonMenu.module.scss b/web/components/action-buttons/ActionButtonMenu/ActionButtonMenu.module.scss
index 783fafc9f2..3daf1da12f 100644
--- a/web/components/action-buttons/ActionButtonMenu/ActionButtonMenu.module.scss
+++ b/web/components/action-buttons/ActionButtonMenu/ActionButtonMenu.module.scss
@@ -3,13 +3,23 @@
align-items: center;
}
+.buttonWrap {
+ display: flex;
+ align-items: center;
+ height: 100%;
+ button {
+ color: currentColor;
+ }
+}
+
.icon {
height: 15px;
margin-right: 5px;
}
.menu {
- border: none;
- background-color: transparent;
- margin: 8px;
+ color: currentColor;
+ // border: none;
+ // background-color: transparent;
+ // margin: 8px;
}
diff --git a/web/components/action-buttons/ActionButtonMenu/ActionButtonMenu.tsx b/web/components/action-buttons/ActionButtonMenu/ActionButtonMenu.tsx
index 7dad682fba..b88fa64224 100644
--- a/web/components/action-buttons/ActionButtonMenu/ActionButtonMenu.tsx
+++ b/web/components/action-buttons/ActionButtonMenu/ActionButtonMenu.tsx
@@ -1,5 +1,5 @@
import { FC } from 'react';
-import { Dropdown, Menu, Space } from 'antd';
+import { Button, Dropdown, Menu, Space } from 'antd';
import { DownOutlined, StarOutlined } from '@ant-design/icons';
import styles from './ActionButtonMenu.module.scss';
import { ExternalAction } from '../../../interfaces/external-action';
@@ -32,12 +32,14 @@ export const ActionButtonMenu: FC<ActionButtonMenuProps> = ({
return (
<Dropdown overlay={menu} trigger={['click']} className={styles.menu}>
- <button type="button" onClick={e => e.preventDefault()}>
- <Space>
- <StarOutlined />
- <DownOutlined />
- </Space>
- </button>
+ <div className={styles.buttonWrap}>
+ <Button type="default" onClick={e => e.preventDefault()}>
+ <Space>
+ <StarOutlined />
+ <DownOutlined />
+ </Space>
+ </Button>
+ </div>
</Dropdown>
);
};