mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
fix tooltip multiline view
This commit is contained in:
@@ -38,7 +38,7 @@ class Tooltip extends React.Component<Props> {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { className, message, location, children } = this.props;
|
const { className, message, location, children } = this.props;
|
||||||
const multiline = message.length > 60 ? "has-tooltip-multiline" : "";
|
const multiline = message.length > 60 ? "is-multiline" : "";
|
||||||
return (
|
return (
|
||||||
<span className={classNames("tooltip", "has-tooltip-" + location, multiline, className)} data-tooltip={message}>
|
<span className={classNames("tooltip", "has-tooltip-" + location, multiline, className)} data-tooltip={message}>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -17281,7 +17281,7 @@ exports[`Storyshots Diff File Controls 1`] = `
|
|||||||
className="control"
|
className="control"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="tooltip has-tooltip-top has-tooltip-multiline"
|
className="tooltip has-tooltip-top is-multiline"
|
||||||
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
@@ -17862,7 +17862,7 @@ exports[`Storyshots Diff File Controls 1`] = `
|
|||||||
className="control"
|
className="control"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="tooltip has-tooltip-top has-tooltip-multiline"
|
className="tooltip has-tooltip-top is-multiline"
|
||||||
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
@@ -18720,7 +18720,7 @@ exports[`Storyshots Diff File Controls 1`] = `
|
|||||||
className="control"
|
className="control"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="tooltip has-tooltip-top has-tooltip-multiline"
|
className="tooltip has-tooltip-top is-multiline"
|
||||||
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
@@ -19174,7 +19174,7 @@ exports[`Storyshots Diff File Controls 1`] = `
|
|||||||
className="control"
|
className="control"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="tooltip has-tooltip-top has-tooltip-multiline"
|
className="tooltip has-tooltip-top is-multiline"
|
||||||
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
@@ -19628,7 +19628,7 @@ exports[`Storyshots Diff File Controls 1`] = `
|
|||||||
className="control"
|
className="control"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="tooltip has-tooltip-top has-tooltip-multiline"
|
className="tooltip has-tooltip-top is-multiline"
|
||||||
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
@@ -20689,7 +20689,7 @@ exports[`Storyshots Diff File Controls 1`] = `
|
|||||||
className="control"
|
className="control"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="tooltip has-tooltip-top has-tooltip-multiline"
|
className="tooltip has-tooltip-top is-multiline"
|
||||||
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
data-tooltip="A skull and crossbones or death's head is a symbol consisting of a human skull and two long bones crossed together under or behind the skull. The design originates in the Late Middle Ages as a symbol of death and especially as a memento mori on tombstones."
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
|
|||||||
Reference in New Issue
Block a user