legit

Fork of https://git.icyphox.sh/legit

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
<!--
Copyright 2025 Shota FUJI <pockawoooh@gmail.com>
SPDX-License-Identifier: MIT
-->
{{ define "tab-selector" -}}
<dt class="metadata--key">Tab width</dt>
<dd class="metadata--value tab-selector">
	<script type="module" src="/static/tab-selector.js"></script>
	<select id="global_tab_width" class="tab-selector--select" disabled>
		<option value="1">1</option>
		<option value="2">2</option>
		<option value="3">3</option>
		<option value="4" selected>4</option>
		<option value="6">6</option>
		<option value="8">8</option>
		<option value="12">12</option>
	</select>
	<noscript>
		<span class="noscript--feature-unavailable">
			Changing tab width requires JavaScript enabled.
		</span>
	</noscript>
</dd>
{{- end -}}