Skip to content

fix: improve logview UI#1808

Open
dede999 wants to merge 6 commits intokernelci:mainfrom
profusion:fix/fix_logview
Open

fix: improve logview UI#1808
dede999 wants to merge 6 commits intokernelci:mainfrom
profusion:fix/fix_logview

Conversation

@dede999
Copy link
Contributor

@dede999 dede999 commented Mar 17, 2026

Description

This PR modifies how log viewer behave on many viewpoints. It does not avoid horizontal overflow, but the user now can scroll both vertically and horizontally

How to test

  • Go to any build page
  • Click on the link "View Log Excerpt"

Related issue

@dede999
Copy link
Contributor Author

dede999 commented Mar 17, 2026

Screencast.from.2026-03-17.19-42-04.webm

Showing the new log view preview

@dede999 dede999 marked this pull request as draft March 17, 2026 22:43
@MarceloRobert MarceloRobert added the Frontend Most or all of the changes for this issue will be in the frontend code. label Mar 18, 2026
@dede999 dede999 force-pushed the fix/fix_logview branch 2 times, most recently from 7b0ca49 to 6b4a373 Compare March 18, 2026 13:46
@dede999 dede999 marked this pull request as ready for review March 18, 2026 13:53
Copy link
Contributor

@alanpeixinho alanpeixinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to try for even smaller screen sizes.
Most phones goes to a screen resolution close to 360 x 800.
And can we increase the side panel size?
It seems we start to scroll way before we are actually using most of the screen size.

Copy link
Collaborator

@MarceloRobert MarceloRobert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On small screens the components inside the log sheet are still larger than the screen. In this case I believe that we could rearrange the components and let it scroll vertically instead of add a horizontal scroll

Image

return (
<>
<div className="min-h-[300px]">
<div className="max-h-500 min-h-[300px] w-full">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by adding a max-height to this component you also changed the behavior on the logViewer page, which now cuts off the log after size 500. I believe you don't need to alter this component for this task...

Image

dede999 added 4 commits March 19, 2026 19:23
This is made not only to stop the logviewer to overflow its height,
which could be done by other means, but also to force the component
to occupy a determined share of the screen
Such improvement was made by locking a maximun height value and the
optimal value for clamp function

How were these values set? Empirically; no specific technique has been
used to set them.

Closes kernelci#1429
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Most or all of the changes for this issue will be in the frontend code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log sheet should fit screen size

3 participants