Undid some stuff due to rodent bitching
parent
a9adaf6d2a
commit
620a6b5f1a
|
@ -6559,7 +6559,7 @@ g {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-emoji-dropdown
|
.speed-carot-modal
|
||||||
{
|
{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -6576,7 +6576,7 @@ g {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-emoji-dropdown .quick-emoji-option
|
.speed-carot-modal .speed-modal-option
|
||||||
{
|
{
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-bottom: 1px solid #606060;
|
border-bottom: 1px solid #606060;
|
||||||
|
@ -6584,22 +6584,22 @@ g {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-emoji-dropdown .quick-emoji-option:hover,
|
.speed-carot-modal .speed-modal-option:hover,
|
||||||
.quick-emoji-dropdown .quick-emoji-option:focus,
|
.speed-carot-modal .speed-modal-option:focus,
|
||||||
.quick-emoji-dropdown .quick-emoji-option.selected
|
.speed-carot-modal .speed-modal-option.selected
|
||||||
{
|
{
|
||||||
background-color: rgba(255, 255, 255, 0.2);
|
background-color: rgba(255, 255, 255, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.quick-emoji-dropdown .quick-emoji-image
|
.speed-carot-modal .speed-modal-image
|
||||||
{
|
{
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-emoji-dropdown .quick-emoji-option span
|
.speed-carot-modal .speed-modal-option span
|
||||||
{
|
{
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -6712,7 +6712,7 @@ div.markdown {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.quick-emoji-dropdown .quick-emoji-image
|
.speed-carot-modal .speed-modal-image
|
||||||
{
|
{
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
|
|
@ -88,7 +88,8 @@ function postToastSwitch(t, url, button1, button2, cls, extraActionsOnSuccess) {
|
||||||
{
|
{
|
||||||
},
|
},
|
||||||
(xhr) => {
|
(xhr) => {
|
||||||
if (button1) {
|
if (button1)
|
||||||
|
{
|
||||||
if (typeof button1 == 'boolean') {
|
if (typeof button1 == 'boolean') {
|
||||||
location.reload()
|
location.reload()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -127,13 +127,13 @@ class EmojiEngine {
|
||||||
}
|
}
|
||||||
|
|
||||||
const emojiEl = document.createElement('button');
|
const emojiEl = document.createElement('button');
|
||||||
emojiEl.classList.add('quick-emoji-option', 'emoji-option');
|
emojiEl.classList.add('speed-modal-option', 'emoji-option');
|
||||||
emojiEl.addEventListener('click', (e) => {
|
emojiEl.addEventListener('click', (e) => {
|
||||||
this.onInsert(emojiName);
|
this.onInsert(emojiName);
|
||||||
});
|
});
|
||||||
|
|
||||||
const emojiImgEl = document.createElement('img');
|
const emojiImgEl = document.createElement('img');
|
||||||
emojiImgEl.classList.add('quick-emoji-image', 'emoji-option-image');
|
emojiImgEl.classList.add('speed-modal-image', 'emoji-option-image');
|
||||||
emojiImgEl.src = emojiEngine.src(emojiName);
|
emojiImgEl.src = emojiEngine.src(emojiName);
|
||||||
emojiEl.appendChild(emojiImgEl);
|
emojiEl.appendChild(emojiImgEl);
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ const emojiEngine = new EmojiEngine();
|
||||||
// Quick emoji dropdown & emoji insertion
|
// Quick emoji dropdown & emoji insertion
|
||||||
{
|
{
|
||||||
const emojiDropdownEl = document.createElement('div');
|
const emojiDropdownEl = document.createElement('div');
|
||||||
emojiDropdownEl.classList.add('quick-emoji-dropdown');
|
emojiDropdownEl.classList.add('speed-carot-modal');
|
||||||
/** @type {null | HTMLTextAreaElement} */
|
/** @type {null | HTMLTextAreaElement} */
|
||||||
let inputEl = null;
|
let inputEl = null;
|
||||||
let visible = false;
|
let visible = false;
|
||||||
|
|
Loading…
Reference in New Issue