mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
made the tool tip fully opaque for better readability
This commit is contained in:
@@ -558,7 +558,6 @@ input::-webkit-inner-spin-button {
|
|||||||
|
|
||||||
.sponsorBlockRectangleTooltip {
|
.sponsorBlockRectangleTooltip {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: rgba(28, 28, 28, 0.7);
|
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
min-width: 250px;
|
min-width: 250px;
|
||||||
|
|||||||
@@ -284,6 +284,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
|
|||||||
timeout: 15,
|
timeout: 15,
|
||||||
bottomOffset: 75 + "px",
|
bottomOffset: 75 + "px",
|
||||||
leftOffset: -318 + "px",
|
leftOffset: -318 + "px",
|
||||||
|
backgroundColor: "rgba(28, 28, 28, 1.0)",
|
||||||
htmlId: "sponsorTimesContainer" + this.idSuffix,
|
htmlId: "sponsorTimesContainer" + this.idSuffix,
|
||||||
buttonFunction: () => {Config.config.scrollToEditTimeUpdate = true}
|
buttonFunction: () => {Config.config.scrollToEditTimeUpdate = true}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export interface RectangleTooltipProps {
|
|||||||
htmlId?: string,
|
htmlId?: string,
|
||||||
maxHeight?: string,
|
maxHeight?: string,
|
||||||
maxWidth?: string,
|
maxWidth?: string,
|
||||||
|
backgroundColor?: string,
|
||||||
buttonFunction?: () => void;
|
buttonFunction?: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,6 +27,7 @@ export class RectangleTooltip {
|
|||||||
props.leftOffset ??= "0px";
|
props.leftOffset ??= "0px";
|
||||||
props.maxHeight ??= "100px";
|
props.maxHeight ??= "100px";
|
||||||
props.maxWidth ??= "300px";
|
props.maxWidth ??= "300px";
|
||||||
|
props.backgroundColor ??= "rgba(28, 28, 28, 0.7)";
|
||||||
this.text = props.text;
|
this.text = props.text;
|
||||||
|
|
||||||
this.container = document.createElement('div');
|
this.container = document.createElement('div');
|
||||||
@@ -48,7 +50,8 @@ export class RectangleTooltip {
|
|||||||
bottom: props.bottomOffset,
|
bottom: props.bottomOffset,
|
||||||
left: props.leftOffset,
|
left: props.leftOffset,
|
||||||
maxHeight: props.maxHeight,
|
maxHeight: props.maxHeight,
|
||||||
maxWidth: props.maxWidth}}
|
maxWidth: props.maxWidth,
|
||||||
|
backgroundColor: props.backgroundColor}}
|
||||||
className="sponsorBlockRectangleTooltip" >
|
className="sponsorBlockRectangleTooltip" >
|
||||||
<div>
|
<div>
|
||||||
<img className="sponsorSkipLogo sponsorSkipObject"
|
<img className="sponsorSkipLogo sponsorSkipObject"
|
||||||
|
|||||||
Reference in New Issue
Block a user