Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Jan 30, 2024
1 parent b4b1e6c commit 8ecfb86
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
<div id="status" data-tooltip data-tooltip-left>
<i class="icon icon-loading"></i>
<div id="progress">
<div class="progress-bar">
<!-- <div class="progress-value"></div> -->
</div>
<div class="progress-bar"></div>
</div>
</div>
<div>
<button id="showBuildPanel" data-tooltip="Run code"><i class="icon icon-run"></i></button>
<button id="showBuildPanel" data-tooltip="Run code">
<i class="icon icon-run"></i>
</button>
<button id="toggleTheme" data-tooltip="Toggle theme">
<i class="icon icon-toggle-theme"></i>
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function createServer() {
break;
}
case "progress": {
setClangdStatus(e.data.value, e.data.progress);
setClangdStatus(e.data.value, e.data.max);
break;
}
}
Expand Down
10 changes: 7 additions & 3 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ body {
display: inline-flex;
align-items: center;
gap: 0.25em;
transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
border-color 0.2s ease-in-out;
}
button:hover:not([disabled], .disabled, :disabled) {
color: var(--btn-text-hover-color, var(--btn-text-color));
Expand Down Expand Up @@ -404,7 +406,8 @@ a {
}

[data-tooltip]::after {
display: none;
visibility: hidden;
display: block;
content: var(--tooltip-text, attr(data-tooltip));
position: absolute;
top: -0.5em;
Expand All @@ -418,11 +421,12 @@ a {
white-space: nowrap;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease-in-out;
transition: opacity 0.2s ease-in-out;
z-index: 20;
}

[data-tooltip]:hover::after {
display: block;
visibility: visible;
opacity: 1;
}

Expand Down

0 comments on commit 8ecfb86

Please sign in to comment.