Skip to content

Commit

Permalink
fix: remove .yaml from aircraft names & fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sequal32 committed May 25, 2023
1 parent 659d6ec commit 3e0ab77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/yourcontrols/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h5 class="card-title">Client List</h5>
<div class="card-body">
<h5 class="card-title">Settings</h5>
<form class="needs-validation form-div" id="settings-form" novalidate>
<div class="form-group col-sm-auto small-margin align-bottom">
<div class="form-group col-sm-auto bottom-margin align-bottom">
<label for="aircraft-list">Select Aircraft</label>
<select id="aircraft-list" class="form-control themed themed">
<option selected value="" id="default-aircraft-option"></option>
Expand Down Expand Up @@ -228,9 +228,12 @@ <h5 class="card-title">Settings</h5>
</div>
<div class="form-group col-sm-auto bottom-margin">
<div class="form-check" id="buffer-div">
<input class="form-check-input" type="checkbox" id="theme-select" />
<label for="theme-select">Dark Theme</label>
<input class="form-check-input" type="checkbox" id="instructor-mode" />
<label for="instructor-mode">Instructor Mode</label>
</div>
<small class="form-text text-muted checkbox-text">
Players connecting to your server will not be able to manipulate the aircraft.
</small>
</div>
<div class="form-group col-sm-auto bottom-margin">
<div class="form-check" id="buffer-div">
Expand All @@ -243,12 +246,9 @@ <h5 class="card-title">Settings</h5>
</div>
<div class="form-group col-sm-auto bottom-margin">
<div class="form-check" id="buffer-div">
<input class="form-check-input" type="checkbox" id="instructor-mode" />
<label for="instructor-mode">Instructor Mode</label>
<input class="form-check-input" type="checkbox" id="theme-select" />
<label for="theme-select">Dark Theme</label>
</div>
<small class="form-text text-muted checkbox-text">
Players connecting to your server will not be able to manipulate the aircraft.
</small>
</div>
<div class="form-group form-row justify-content-center small-margin align-bottom">
<button type="submit" id="settings-button" class="btn btn-success">
Expand Down
2 changes: 1 addition & 1 deletion src/yourcontrols/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ aircraftList.addAircraft = function (aircraftName) {
const newButton = document.createElement("option");
newButton.className =
"list-group-item list-group-item-action aircraft-list-entry themed";
newButton.innerHTML = aircraftName;
newButton.innerHTML = aircraftName.replace(".yaml", "");
newButton.value = aircraftName;

aircraftList.appendChild(newButton);
Expand Down

0 comments on commit 3e0ab77

Please sign in to comment.