Add "compare revisions" button on top for long form.

Created on 19 November 2020, almost 4 years ago
Updated 28 May 2024, 6 months ago

Problem/Motivation

For long forms where revisions are more than 5 or on a Mobile device where screens are narrow and small, users need to scroll all the way down to find the "Compare Revisions" button.

This feature was in D7 version of the module.

Steps to reproduce

Add 5 or 10 revisions based on your screen size and open the compare revision tab you won't see the button on the screen area until you scroll down.

Proposed resolution

- Extract button render array in an array
- Add button before table header array with condition of > 5 with name "submit_top"
- Refactor existing button with above extracted variable

Remaining tasks

None

User interface changes

Two "Compare Selected Revision" buttons on top and bottom.

API changes

None

Data model changes

None

โœจ Feature request
Status

Fixed

Version

1.0

Component

User interface

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia amjad1233 Brisbane

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024