Merge pull request #19903 from KDSBrowne/v3-19861

fix(whiteboard): Update CSS To Disable Asset And Laser Tool
This commit is contained in:
Ramón Souza 2024-03-27 10:08:00 -03:00 committed by GitHub
commit 55eeadc249
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,10 +1,4 @@
import styled, { createGlobalStyle } from 'styled-components'; import styled, { createGlobalStyle } from 'styled-components';
import { borderSize, borderSizeLarge } from '/imports/ui/stylesheets/styled-components/general';
import { toolbarButtonColor, colorWhite, colorBlack } from '/imports/ui/stylesheets/styled-components/palette';
import {
fontSizeLarger,
} from '/imports/ui/stylesheets/styled-components/typography';
import Button from '/imports/ui/components/common/button/component';
const TldrawV2GlobalStyle = createGlobalStyle` const TldrawV2GlobalStyle = createGlobalStyle`
${({ isPresenter, hasWBAccess }) => (!isPresenter && hasWBAccess) && ` ${({ isPresenter, hasWBAccess }) => (!isPresenter && hasWBAccess) && `
@ -91,11 +85,11 @@ const TldrawV2GlobalStyle = createGlobalStyle`
[data-testid="main.page-menu"], [data-testid="main.page-menu"],
[data-testid="main.menu"], [data-testid="main.menu"],
[data-testid="tools.laser"], [data-testid="tools.more.laser"],
[data-testid="tools.asset"], [data-testid="tools.asset"],
.tlui-buttons__horizontal > :nth-child(1), .tlui-buttons__horizontal > :nth-child(1),
.tlui-buttons__horizontal > :nth-child(2) { .tlui-buttons__horizontal > :nth-child(2) {
display: none; display: none !important;
} }
.tl-collaborator__cursor { .tl-collaborator__cursor {
@ -113,4 +107,4 @@ const EditableWBWrapper = styled.div`
export default { export default {
TldrawV2GlobalStyle, TldrawV2GlobalStyle,
EditableWBWrapper, EditableWBWrapper,
}; };