1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-07 21:47:02 +09:00

JS-7194: fix

This commit is contained in:
Andrew Simachev 2025-06-06 11:27:30 +02:00
parent 0892f0c851
commit 9ac972c10a
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF
3 changed files with 10 additions and 4 deletions

View file

@ -1843,7 +1843,7 @@
"toastChatAttachmentsLimitReached": "You can upload only %s %s at a time",
"toastWidget": "Widget <b>%s</b> has been added",
"toastJoinSpace": "You have joined the <b>%s</b>",
"toastJoinSpace": "You have joined <b>%s</b>",
"textColor-grey": "Grey",
"textColor-yellow": "Yellow",

View file

@ -16,8 +16,8 @@
.buttons { flex-shrink: 0; color: var(--color-control-active); font-weight: 500; user-select: none; display: flex; gap: 0px 16px; height: 100%; }
.buttons {
.button {
display: inline-block; vertical-align: top; transition: $transitionAllCommon; color: var(--color-control-active);
background: none; border: 0px; padding: 0px; height: 100%; line-height: 44px;
display: inline-block; vertical-align: top; transition: $transitionAllCommon; background: none; border: 0px; padding: 0px; height: 100%;
line-height: 44px;
}
.button.hide { display: none; }
.button:hover { color: var(--color-text-primary); }

View file

@ -27,6 +27,12 @@ const Label: FC<Props> = ({
}) => {
const nodeRef = useRef<HTMLDivElement | null>(null);
const cn = [ 'label' ];
const dataProps = { ...dataset };
if (className.match(/animation/)) {
dataProps['animation-type'] = I.AnimType.Text;
dataProps.content = text;
};
if (className) {
cn.push(className);
@ -51,7 +57,7 @@ const Label: FC<Props> = ({
onMouseDown={onMouseDown}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
{...U.Common.dataProps({ ...dataset, content: text, 'animation-type': I.AnimType.Text })}
{...U.Common.dataProps(dataProps)}
/>
);