kopia lustrzana https://github.com/Tldraw/Tldraw
more user select (#1163)
rodzic
257a7e750c
commit
d0e265fc80
|
@ -639,6 +639,8 @@ const StyledLayout = styled('div', {
|
|||
overflow: 'hidden',
|
||||
boxSizing: 'border-box',
|
||||
outline: 'none',
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
|
||||
'& .tl-container': {
|
||||
position: 'absolute',
|
||||
|
|
|
@ -4,6 +4,7 @@ export const MenuContent = styled('div', {
|
|||
position: 'relative',
|
||||
overflow: 'hidden',
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
zIndex: 99997,
|
||||
|
|
|
@ -107,6 +107,7 @@ export const StyledRowButton = styled('button', {
|
|||
fontSize: '$1',
|
||||
borderRadius: 4,
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
margin: 0,
|
||||
padding: '0 0',
|
||||
|
||||
|
|
|
@ -110,6 +110,7 @@ export const StyledToolButtonInner = styled('div', {
|
|||
fontFamily: '$ui',
|
||||
color: 'inherit',
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
boxSizing: 'border-box',
|
||||
border: '1px solid transparent',
|
||||
'-webkit-tap-highlight-color': 'transparent',
|
||||
|
|
|
@ -45,6 +45,7 @@ const StyledContent = styled(RadixTooltip.Content, {
|
|||
alignItems: 'center',
|
||||
fontFamily: '$ui',
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
})
|
||||
|
||||
const StyledArrow = styled(RadixTooltip.Arrow, {
|
||||
|
|
|
@ -159,6 +159,7 @@ const StyledItem = styled('li', {
|
|||
fontSize: '$1',
|
||||
borderRadius: 4,
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
margin: 0,
|
||||
padding: '0 0',
|
||||
})
|
||||
|
|
|
@ -24,6 +24,7 @@ export function StatusBar() {
|
|||
const StyledStatusBar = styled('div', {
|
||||
height: 40,
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
borderTop: '1px solid $panelContrast',
|
||||
gridArea: 'status',
|
||||
display: 'flex',
|
||||
|
|
|
@ -369,6 +369,7 @@ export const StyledRow = styled('div', {
|
|||
padding: '$2 0 $2 $3',
|
||||
borderRadius: 4,
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
margin: 0,
|
||||
display: 'flex',
|
||||
gap: '$3',
|
||||
|
|
|
@ -104,6 +104,7 @@ const ReadOnlyLabel = styled('div', {
|
|||
paddingLeft: '$4',
|
||||
paddingRight: '$1',
|
||||
userSelect: 'none',
|
||||
WebkitUserSelect: 'none',
|
||||
})
|
||||
|
||||
export const TopPanel = React.memo(_TopPanel)
|
||||
|
|
|
@ -24,6 +24,7 @@ function getMeasurementDiv() {
|
|||
zIndex: '9999',
|
||||
pointerEvents: 'none',
|
||||
userSelect: 'none',
|
||||
'-webkit-user-select': 'none',
|
||||
alignmentBaseline: 'mathematical',
|
||||
dominantBaseline: 'mathematical',
|
||||
})
|
||||
|
|
|
@ -131,7 +131,6 @@ export interface TDFile {
|
|||
name: string
|
||||
fileHandle: FileSystemFileHandle | null
|
||||
document: TDDocument
|
||||
assets: Record<string, unknown>
|
||||
}
|
||||
|
||||
// The shape of the Tldraw document
|
||||
|
|
Ładowanie…
Reference in New Issue