Skip to content

Commit

Permalink
palette sticky issue solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashgabani845 committed Nov 14, 2024
1 parent 582b50c commit a150ad7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions css/activities.css
Original file line number Diff line number Diff line change
Expand Up @@ -1732,6 +1732,10 @@ table {
.disable_highlighting {
user-select: none;
}
#palette.flex-palette {
display: flex !important;
flex-direction: row !important;
}

@media (max-width: 390px) {
#right-arrow,
Expand Down
5 changes: 3 additions & 2 deletions js/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ class Palettes {
const element = document.createElement("div");
element.id = "palette";
element.setAttribute("class", "disable_highlighting");
element.classList.add('flex-palette')
element.setAttribute(
"style",
"position: absolute; z-index: 1000; display: none ; left :0px; top:" + this.top + "px"
"position: absolute; z-index: 1000; left :0px; top:" + this.top + "px"
);
element.innerHTML =
'<div style="float: left"><table width ="' +
'<div style="height:fit-content"><table width ="' +
1.5 * this.cellSize +
'px"bgcolor="white"><thead><tr></tr></thead></table><table width ="' +
4.5 * this.cellSize +
Expand Down

0 comments on commit a150ad7

Please sign in to comment.