Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
KotGPT
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Pastushkov
KotGPT
Commits
12e79c3d
Commit
12e79c3d
authored
Aug 19, 2025
by
michaelpastushkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b9350974
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
static/www/1.html
+7
-4
No files found.
static/www/1.html
View file @
12e79c3d
...
...
@@ -198,9 +198,11 @@
position
:
fixed
;
right
:
1rem
;
bottom
:
calc
(
var
(
--footer-h
)
+
.75rem
+
var
(
--composer-h
));
/* hover above composer+footer */
z-index
:
1100
;
/* above composer/footer */
display
:
none
;
/* hidden initially */
align-items
:
center
;
justify-content
:
center
;
border
:
1px
solid
#ced4da
;
...
...
@@ -252,7 +254,7 @@
<div
class=
"composer py-3"
>
<div
class=
"container"
>
<form
id=
"promptForm"
class=
"d-flex flex-column gap-2"
>
<!-- Single row: textarea + Go/Stop
(scroll button removed from here)
-->
<!-- Single row: textarea + Go/Stop -->
<div
class=
"composer-row"
>
<textarea
id=
"inputText"
class=
"form-control"
rows=
"1"
placeholder=
""
></textarea>
<button
id=
"goBtn"
class=
"btn btn-primary"
type=
"submit"
></button>
...
...
@@ -265,7 +267,7 @@
<!-- Fixed, non-scrollable footer -->
<footer
id=
"disclaimer"
></footer>
<!-- Floating scroll
-to-bottom
button -->
<!-- Floating scroll button -->
<button
id=
"scrollDownBtn"
type=
"button"
aria-label=
"Scroll down"
title=
"Scroll down"
>
<svg
viewBox=
"0 0 24 24"
fill=
"currentColor"
aria-hidden=
"true"
>
<path
...
...
@@ -381,6 +383,7 @@
function
updateScrollButton
()
{
const
needs
=
isOverflowingAny
()
&&
!
atBottom
();
// hidden initially (no overflow) and whenever you’re at the bottom
scrollDownBtn
.
style
.
display
=
needs
?
'inline-flex'
:
'none'
;
}
...
...
@@ -452,7 +455,7 @@
const
{
value
,
done
}
=
await
reader
.
read
();
if
(
done
)
break
;
const
chunk
=
decoder
.
decode
(
value
,
{
stream
:
true
});
rawMarkdown
+=
chunk
;
// append chunk
rawMarkdown
+=
chunk
;
// append
streamed
chunk
flush
();
}
flush
();
...
...
@@ -504,7 +507,7 @@
try
{
await
fetch
(
'/api/clear'
,
{
method
:
'GET'
});
}
catch
(
_
)
{
}
await
loadLocale
(
CURRENT_LOCALE
);
inputText
.
focus
();
updateScrollButton
();
// initial
updateScrollButton
();
// initial
-> hidden if no overflow
});
</script>
</body>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment