Skip to content

Commit 295b004

Browse files
committed
refactor: update pre-commit hook to run npm test and adjust husky prepare script
style: enhance tooltip layout in CollaboratorAvatarGroup component Signed-off-by: Lee Calcote <[email protected]>
1 parent 03457c3 commit 295b004

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx lint-staged
1+
npm test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"format:write": "prettier --write \"**/*.{ts,tsx,md}\" --config ./.prettierrc",
2424
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
2525
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
26-
"prepare": "husky install",
26+
"prepare": "husky",
2727
"test": "jest",
2828
"versionup:major": "npm version major",
2929
"versionup:minor": "npm version minor",

src/custom/CollaboratorAvatarGroup/CollaboratorAvatarGroup.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ const CollaboratorAvatarGroup = ({
145145
<CustomTooltip
146146
key={clientID}
147147
title={
148-
<div>
149-
<Typography style={{ fontSize: '0.9rem' }}>{user.name}</Typography>
148+
<div style={{ display: 'flex', justifyContent: 'center', flexDirection: 'column' }}>
149+
<Typography style={{ display: 'flex', justifyContent: 'center', flexDirection: 'column', fontSize: '0.9rem' }}>{user.name}</Typography>
150150
<Button
151151
size="small"
152152
variant="outlined"
153153
onClick={onOpenWorkspace}
154154
style={{
155-
fontSize: '0.9em',
155+
fontSize: '0.9rem',
156156
padding: '2px 8px',
157157
minWidth: 'auto',
158158
marginTop: '4px'

0 commit comments

Comments
 (0)