Skip to content

Commit 926303d

Browse files
palette sticky issue solved (#4055)
1 parent 582b50c commit 926303d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

css/activities.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,10 @@ table {
17321732
.disable_highlighting {
17331733
user-select: none;
17341734
}
1735+
#palette.flex-palette {
1736+
display: flex !important;
1737+
flex-direction: row !important;
1738+
}
17351739

17361740
@media (max-width: 390px) {
17371741
#right-arrow,

js/palette.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,13 @@ class Palettes {
111111
const element = document.createElement("div");
112112
element.id = "palette";
113113
element.setAttribute("class", "disable_highlighting");
114+
element.classList.add('flex-palette')
114115
element.setAttribute(
115116
"style",
116-
"position: absolute; z-index: 1000; display: none ; left :0px; top:" + this.top + "px"
117+
"position: absolute; z-index: 1000; left :0px; top:" + this.top + "px"
117118
);
118119
element.innerHTML =
119-
'<div style="float: left"><table width ="' +
120+
'<div style="height:fit-content"><table width ="' +
120121
1.5 * this.cellSize +
121122
'px"bgcolor="white"><thead><tr></tr></thead></table><table width ="' +
122123
4.5 * this.cellSize +

0 commit comments

Comments
 (0)