коммит произвёл
GitHub
родитель
077f8e5061
Коммит
f09df430b9
@@ -65,6 +65,7 @@ export default function FileAttachment(props: Props) {
|
|||||||
const [loadFilesCalled, setLoadFilesCalled] = useState(false);
|
const [loadFilesCalled, setLoadFilesCalled] = useState(false);
|
||||||
const [keepOpen, setKeepOpen] = useState(false);
|
const [keepOpen, setKeepOpen] = useState(false);
|
||||||
const [openUp, setOpenUp] = useState(false);
|
const [openUp, setOpenUp] = useState(false);
|
||||||
|
const [showTooltip, setShowTooltip] = useState(true);
|
||||||
|
|
||||||
const buttonRef = useRef<HTMLButtonElement | null>(null);
|
const buttonRef = useRef<HTMLButtonElement | null>(null);
|
||||||
|
|
||||||
@@ -139,6 +140,7 @@ export default function FileAttachment(props: Props) {
|
|||||||
const handleDropdownOpened = (open: boolean) => {
|
const handleDropdownOpened = (open: boolean) => {
|
||||||
props.handleFileDropdownOpened?.(open);
|
props.handleFileDropdownOpened?.(open);
|
||||||
setKeepOpen(open);
|
setKeepOpen(open);
|
||||||
|
setShowTooltip(!open);
|
||||||
|
|
||||||
if (open) {
|
if (open) {
|
||||||
setMenuPosition();
|
setMenuPosition();
|
||||||
@@ -227,6 +229,7 @@ export default function FileAttachment(props: Props) {
|
|||||||
>
|
>
|
||||||
<WithTooltip
|
<WithTooltip
|
||||||
title={formatMessage({id: 'file_search_result_item.more_actions', defaultMessage: 'More Actions'})}
|
title={formatMessage({id: 'file_search_result_item.more_actions', defaultMessage: 'More Actions'})}
|
||||||
|
disabled={!showTooltip}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
ref={buttonRef}
|
ref={buttonRef}
|
||||||
|
|||||||
@@ -330,6 +330,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 320px;
|
width: 320px;
|
||||||
|
min-width: 204px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: 6.4rem;
|
height: 6.4rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -352,6 +353,7 @@
|
|||||||
&:hover,
|
&:hover,
|
||||||
&:focus-within,
|
&:focus-within,
|
||||||
&.keep-open {
|
&.keep-open {
|
||||||
|
overflow: visible;
|
||||||
box-shadow: 0 2px 3px 0 rgba(variables.$black, 0.1), 0 2px 3px 0 rgba(variables.$black, 0.1);
|
box-shadow: 0 2px 3px 0 rgba(variables.$black, 0.1), 0 2px 3px 0 rgba(variables.$black, 0.1);
|
||||||
|
|
||||||
.file-dropdown-icon {
|
.file-dropdown-icon {
|
||||||
@@ -528,10 +530,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-image__detail {
|
.post-image__detail {
|
||||||
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
height: 100%;
|
height: 36px;
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
.post-image__name {
|
.post-image__name {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -575,8 +579,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-image__size {
|
.post-image__size {
|
||||||
|
overflow: hidden;
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
opacity: 0.73;
|
opacity: 0.73;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user