update text area for scrooll wheels

This commit is contained in:
Wolfang Torres
2026-06-20 11:09:53 +08:00
parent 5d9b55c29e
commit c5bad326f1
2 changed files with 24 additions and 2 deletions

View File

@@ -70,6 +70,12 @@
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
} }
.no-wrap-scroll {
white-space: nowrap; /* Prevents text from breaking into new lines */
overflow-x: auto; /* Adds a horizontal scrollbar when content overflows */
width: 100%; /* Or set a specific max-width/fixed width */
}
</style> </style>
</head> </head>
@@ -95,7 +101,12 @@
<form id="text_form" method="POST"> <form id="text_form" method="POST">
<div class="fields"> <div class="fields">
<div class="field"> <div class="field">
<textarea name="text" id="text" rows="15"></textarea> <textarea
class="no-wrap-scroll"
name="text"
id="text"
rows="15"
></textarea>
</div> </div>
</div> </div>
<ul class="actions"> <ul class="actions">

View File

@@ -70,6 +70,12 @@
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
} }
.no-wrap-scroll {
white-space: nowrap; /* Prevents text from breaking into new lines */
overflow-x: auto; /* Adds a horizontal scrollbar when content overflows */
width: 100%; /* Or set a specific max-width/fixed width */
}
</style> </style>
</head> </head>
@@ -95,7 +101,12 @@
<form id="text_form" method="POST"> <form id="text_form" method="POST">
<div class="fields"> <div class="fields">
<div id="table" class="field"> <div id="table" class="field">
<textarea name="text" id="text" rows="15"></textarea> <textarea
class="no-wrap-scroll"
name="text"
id="text"
rows="15"
></textarea>
</div> </div>
</div> </div>
<ul class="actions"> <ul class="actions">