Skip to content

Commit 0da1825

Browse files
committed
Log view: fix word wrap not working in all cases
1 parent 3c6db70 commit 0da1825

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

changes.d/2078.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed log view word wrap not working in all cases.

src/components/cylc/log/Log.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2020
ref="scrollWrapper"
2121
class="h-100 overflow-auto px-4 pb-2"
2222
>
23-
<pre ref="logText" data-cy="log-text"><span
23+
<pre
24+
ref="logText"
25+
:class="wordWrap ? 'text-pre-wrap text-break' : 'text-pre'"
26+
data-cy="log-text"
27+
><span
2428
v-for="(log, index) in computedLogs"
2529
:key="index"
26-
:class="wordWrap ? 'text-pre-wrap' : 'text-pre'"
2730
>{{ log }}</span></pre>
2831
<v-btn
2932
v-if="logs.length"

src/services/mock/json/logData.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const workflowLogLines = [
3434
'2023-05-25T10:48:01+01:00 INFO - + cycle point time zone = Z\n',
3535
'2023-08-17T14:10:51+01:00 INFO - The quick brown 🦊 jumps over the lazy 🐶\n',
3636
'2024-02-07T13:38:25+01:00 INFO - Ce programme est distribué dans l\'espoir qu\'il sera utile, mais SANS TOUTE GARANTIE ; sans même la garantie implicite de QUALITÉ MARCHANDE ou d\'ADAPTATION À UN USAGE PARTICULIER. Consultez la GNU General Public License pour plus de détails.\n',
37+
'2025-08-21T02:53:22+01:00 ERROR - cycl not found in /home/users/sheev.palpatine/.local/bin:/home/users/sheev.palpatine/bin:/opt/caribou-client-wrapper/bin:/opt/conda/condabin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/bish/bash/bosh/bin:/data/apps/apes/2025/bin\n',
3738
'2038-01-19T04:14:07+01:00 CRITICAL - It\'s the Epochalypse!\n',
3839
]
3940

0 commit comments

Comments
 (0)