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

Reduce lang list size to fix overflow #61

Merged
merged 2 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.idea
5 changes: 4 additions & 1 deletion src/themes/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ body {
font-family: "JetBrains Mono", monospace;
padding: 0;
margin: 0;
height: 90dvh;
}

header {
Expand Down Expand Up @@ -139,7 +140,7 @@ a, a:visited, a:hover {
grid-template-columns: 4fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr 20fr;
grid-gap: 2em;
height: 96vh;
height: 100%;
align-items: stretch;
justify-items: stretch;
margin: 1em 2em 0em 2em;
Expand All @@ -158,6 +159,8 @@ a, a:visited, a:hover {
line-height: 1.6rem;
font-size: 1rem;
resize: none;
padding: 0;
margin: 0;
}

.content > textarea:focus {
Expand Down
4 changes: 2 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
{% endblock %}

{%- block content -%}
<form action="{{ base_path.path() }}" method="post">
<form action="{{ base_path.path() }}" method="post" style="height: 100%;">
<div class="container">
<div class="content">
<textarea id="text" name="text" autocorrect="off" autocomplete="off" spellcheck="false" placeholder="<paste text or drop file here>" ondrop="dropHandler(event);" ondragover="dragOverHandler(event);" autofocus></textarea>
</div>
<div class="extensions-list">
<select name="extension" id="langs" size="23">
<select name="extension" id="langs" size="17">
{%- for syntax in meta.highlight.syntaxes -%}
{%- if syntax.file_extensions.len() > 0 %}
<option value="{{ syntax.file_extensions.first().unwrap() }}">{{ syntax.name }}</option>
Expand Down
Loading