This commit is contained in:
Maxim Devaev 2022-11-12 18:53:49 +03:00
parent 5b1dd8ad3a
commit 9065b258cc
3 changed files with 9 additions and 5 deletions

View File

@ -620,10 +620,10 @@
</div> </div>
</li> </li>
<li class="right" id="text-dropdown"><a class="menu-button" href="#"><img class="feature-disabled" id="stream-ocr-led" src="/share/svg/led-gear.svg"><span>Text</span></a> <li class="right" id="text-dropdown"><a class="menu-button" href="#"><img class="feature-disabled" id="stream-ocr-led" src="/share/svg/led-gear.svg"><span>Text</span></a>
<div class="menu"> <div class="menu" id="text-menu">
<div class="text"><b>Paste text as keypress sequence<br></b><sub>Please note that PiKVM cannot switch the keyboard layout</sub></div> <div class="text"><b>Paste text as keypress sequence<br></b><sub>Please note that PiKVM cannot switch the keyboard layout</sub></div>
<hr> <hr>
<div class="text"> <div class="text" style="margin-right: 20px">
<textarea id="hid-pak-text" placeholder="Enter your text here"></textarea> <textarea id="hid-pak-text" placeholder="Enter your text here"></textarea>
</div> </div>
<table class="kv"> <table class="kv">

View File

@ -2,12 +2,12 @@ li(id="text-dropdown" class="right")
a(class="menu-button" href="#") a(class="menu-button" href="#")
+navbar_led("stream-ocr-led", "led-gear", "feature-disabled") +navbar_led("stream-ocr-led", "led-gear", "feature-disabled")
span Text span Text
div(class="menu") div(id="text-menu" class="menu")
div(class="text") div(class="text")
b Paste text as keypress sequence#[br] b Paste text as keypress sequence#[br]
sub Please note that PiKVM cannot switch the keyboard layout sub Please note that PiKVM cannot switch the keyboard layout
hr hr
div(class="text") div(class="text" style="margin-right: 20px")
textarea(id="hid-pak-text" placeholder="Enter your text here") textarea(id="hid-pak-text" placeholder="Enter your text here")
table(class="kv") table(class="kv")
tr tr

View File

@ -20,11 +20,15 @@
*****************************************************************************/ *****************************************************************************/
div#text-menu {
width: 340px;
}
textarea#hid-pak-text { textarea#hid-pak-text {
display: block; display: block;
resize: none; resize: none;
height: 120px; height: 120px;
width: 320px; width: 100%;
border: var(--border-default-thin); border: var(--border-default-thin);
border-radius: 4px; border-radius: 4px;
color: var(--cs-code-default-fg); color: var(--cs-code-default-fg);