mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 10:45:41 +03:00
Need debugHover for filtered status
This commit is contained in:
parent
402166e9b2
commit
6685549d11
1 changed files with 11 additions and 7 deletions
|
@ -149,12 +149,21 @@ function Status({
|
|||
|
||||
console.debug('RENDER Status', id, status?.account.displayName);
|
||||
|
||||
const debugHover = (e) => {
|
||||
if (e.shiftKey) {
|
||||
console.log(status);
|
||||
}
|
||||
};
|
||||
|
||||
if (allowFilters && size !== 'l' && _filtered) {
|
||||
return (
|
||||
<FilteredStatus
|
||||
status={status}
|
||||
filterInfo={_filtered}
|
||||
instance={instance}
|
||||
containerProps={{
|
||||
onMouseEnter: debugHover,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
@ -190,12 +199,6 @@ function Status({
|
|||
|
||||
const showSpoiler = !!snapStates.spoilers[id] || false;
|
||||
|
||||
const debugHover = (e) => {
|
||||
if (e.shiftKey) {
|
||||
console.log(status);
|
||||
}
|
||||
};
|
||||
|
||||
if (reblog) {
|
||||
// If has statusID, means useItemID (cached in states)
|
||||
return (
|
||||
|
@ -1718,7 +1721,7 @@ function safeBoundingBoxPadding() {
|
|||
return str;
|
||||
}
|
||||
|
||||
function FilteredStatus({ status, filterInfo, instance }) {
|
||||
function FilteredStatus({ status, filterInfo, instance, containerProps = {} }) {
|
||||
const {
|
||||
account: { avatar, avatarStatic },
|
||||
createdAt,
|
||||
|
@ -1742,6 +1745,7 @@ function FilteredStatus({ status, filterInfo, instance }) {
|
|||
|
||||
return (
|
||||
<div
|
||||
{...containerProps}
|
||||
title={statusPeekText}
|
||||
onContextMenu={(e) => {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue