Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor webui enhancements #4203

Merged
merged 4 commits into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 17 additions & 3 deletions wled00/data/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ button {
.labels {
margin: 0;
padding: 8px 0 2px 0;
font-size: 19px;
}

#namelabel {
Expand Down Expand Up @@ -890,12 +891,12 @@ a.btn {
line-height: 28px;
}

/* Quick color select Black button (has white border) */
.qcsb {
/* Quick color select Black and White button (has white/black border, depending on the theme) */
.qcsb, .qcsw {
width: 26px;
height: 26px;
line-height: 26px;
border: 1px solid #fff;
border: 1px solid var(--c-f);
}

/* Hex color input wrapper div */
Expand Down Expand Up @@ -1299,6 +1300,14 @@ TD .checkmark, TD .radiomark {
width: 100%;
}

#segutil {
margin-bottom: 12px;
}

#segcont > div:first-child, #fxFind {
margin-top: 4px;
}

/* Simplify segments */
.simplified #segcont .lstI {
margin-top: 4px;
Expand Down Expand Up @@ -1433,6 +1442,11 @@ dialog {
position: relative;
}

.presin {
width: 100%;
box-sizing: border-box;
}

.btn-s,
.btn-n {
border: 1px solid var(--c-2);
Expand Down
2 changes: 1 addition & 1 deletion wled00/data/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<div class="qcs" onclick="pC('#ffa000');" style="background-color:#ffa000;"></div>
<div class="qcs" onclick="pC('#ffc800');" style="background-color:#ffc800;"></div>
<div class="qcs" onclick="pC('#ffe0a0');" style="background-color:#ffe0a0;"></div>
<div class="qcs" onclick="pC('#ffffff');" style="background-color:#ffffff;"></div>
<div class="qcs qcsw" onclick="pC('#ffffff');" style="background-color:#ffffff;"></div>
<div class="qcs qcsb" onclick="pC('#000000');" style="background-color:#000000;"></div><br>
<div class="qcs" onclick="pC('#ff00ff');" style="background-color:#ff00ff;"></div>
<div class="qcs" onclick="pC('#0000ff');" style="background-color:#0000ff;"></div>
Expand Down
4 changes: 2 additions & 2 deletions wled00/data/settings_2D.htm
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
</select><br>
Serpentine: <input type="checkbox" name="P${i}S" oninput="UI()"><br>
Dimensions (WxH): <input name="P${i}W" type="number" min="1" max="255" value="${pw}" oninput="UI()"> x <input name="P${i}H" type="number" min="1" max="255" value="${ph}" oninput="UI()"><br>
Offset X:<input name="P${i}X" type="number" min="0" max="255" value="0" oninput="UI()">
Y:<input name="P${i}Y" type="number" min="0" max="255" value="0" oninput="UI()"><br><i>(offset from top-left corner in # LEDs)</i>
Offset X: <input name="P${i}X" type="number" min="0" max="255" value="0" oninput="UI()">
Y: <input name="P${i}Y" type="number" min="0" max="255" value="0" oninput="UI()"><br><i>(offset from top-left corner in # LEDs)</i>
</div>`;
p.insertAdjacentHTML("beforeend", b);
}
Expand Down
3 changes: 3 additions & 0 deletions wled00/data/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ button.sml {
min-width: 40px;
margin: 0 0 0 10px;
}
span:before, b:before, b:after, i:after{
content: "\00A0";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where exactly were the spaces missing?
I found a problem with the minifyer that was removing spaces. I fixed it with #4267, so this may not be necessary anymore.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-11-10 at 18 08 34

Copy link
Contributor

@w00000dy w00000dy Nov 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currently an issue with the minifyer. This will be fixed with PR #4267.

}
#scan {
margin-top: -10px;
}
Expand Down