Fix modals, add components, fix tooltip
This commit is contained in:
parent
34fce013d9
commit
e2d3049a97
|
@ -27,6 +27,7 @@ import SliderInput from "@ui/settings/components/slider";
|
||||||
import SwitchInput from "@ui/settings/components/switch";
|
import SwitchInput from "@ui/settings/components/switch";
|
||||||
import TextInput from "@ui/settings/components/textbox";
|
import TextInput from "@ui/settings/components/textbox";
|
||||||
import SettingGroup from "@ui/settings/group";
|
import SettingGroup from "@ui/settings/group";
|
||||||
|
import ErrorBoundary from "@ui/errorboundary";
|
||||||
|
|
||||||
const bounded = new Map();
|
const bounded = new Map();
|
||||||
const PluginAPI = new AddonAPI(PluginManager);
|
const PluginAPI = new AddonAPI(PluginManager);
|
||||||
|
@ -80,7 +81,8 @@ export default class BdApi {
|
||||||
get SliderInput() {return SliderInput;},
|
get SliderInput() {return SliderInput;},
|
||||||
get SwitchInput() {return SwitchInput;},
|
get SwitchInput() {return SwitchInput;},
|
||||||
get TextInput() {return TextInput;},
|
get TextInput() {return TextInput;},
|
||||||
get SettingGroup() {return SettingGroup;}
|
get SettingGroup() {return SettingGroup;},
|
||||||
|
get ErrorBoundary() {return ErrorBoundary;},
|
||||||
};
|
};
|
||||||
Net = {fetch};
|
Net = {fetch};
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,21 +112,25 @@
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
width: 490px;
|
width: 490px;
|
||||||
max-height: 800px;
|
max-height: min(800px, 60vh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-modal-medium {
|
.bd-modal-medium {
|
||||||
width: 600px;
|
width: 600px;
|
||||||
max-height: 800px;
|
max-height: min(800px, 60vh);
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-modal-large {
|
.bd-modal-large {
|
||||||
width: 800px;
|
width: 800px;
|
||||||
max-height: 960px;
|
max-height: min(960px, 70vh);
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bd-addon-modal {
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.bd-modal-header,
|
.bd-modal-header,
|
||||||
.bd-modal-footer {
|
.bd-modal-footer {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -81,7 +81,7 @@ export default class Tooltip {
|
||||||
/** Don't reshow if already active */
|
/** Don't reshow if already active */
|
||||||
if (this.active) return;
|
if (this.active) return;
|
||||||
this.active = true;
|
this.active = true;
|
||||||
this.labelElement.textContent = this.label;
|
// this.labelElement.textContent = this.label;
|
||||||
this.container.append(this.element);
|
this.container.append(this.element);
|
||||||
|
|
||||||
if (this.side == "top") {
|
if (this.side == "top") {
|
||||||
|
|
Loading…
Reference in New Issue