Skip to content

[Actions] Auto scroll feature #25186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RealFascinated opened this issue Jun 10, 2023 · 3 comments · Fixed by #30057
Closed

[Actions] Auto scroll feature #25186

RealFascinated opened this issue Jun 10, 2023 · 3 comments · Fixed by #30057
Labels
topic/gitea-actions related to the actions of Gitea type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@RealFascinated
Copy link

Feature Description

It would be nice if on the action page it would auto scroll down to the bottom of the logs (and maybe auto open the steps?)

Screenshots

No response

@RealFascinated RealFascinated added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Jun 10, 2023
@sillyguodong sillyguodong added the topic/gitea-actions related to the actions of Gitea label Jun 10, 2023
@lunny lunny removed the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Jun 13, 2023
@GammaGames
Copy link

GammaGames commented Aug 30, 2023

I was impatient so I wrote a hacky tamper monkey script that limits the height of the action step and auto scrolls on changes:

// ==UserScript==
// @name         Gitea Autoscroll
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Limit height of build steps and scroll them automagically
// @author       You
// @match        [DOMAIN HERE]*/actions/runs/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=gitea.io
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle(`.job-step-logs {
        max-height: 75vh !important;
        overflow-y: scroll;
    }`);

    $("body").on('DOMSubtreeModified', ".job-step-logs", function() {
        this.scrollTo(0, this.scrollHeight);
    });
})();

I downloaded tamper monkey 10 minutes ago, so I might've done something weird in my script 😛 it works for me!

Edit: It no longer works since Chrome removed the DOMSubtreeModified event :/

@jjardina
Copy link

100% I am new to Gitea and this issue really stood out as Jenkins has had this for years. I have several long running actions and having to scroll to the bottom on every update is a PITA. I was going to open a proposal but found this one already opened.

@Rainnny7
Copy link

This definitely needs to be added

@lunny lunny closed this as completed in 5d6d624 Dec 21, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Mar 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/gitea-actions related to the actions of Gitea type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants