dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[BUG] Items are always placed above widget within a section despite the order in the config

Open Antiz96 opened this issue 2 years ago • 2 comments

Environment

Self-Hosted (Docker)

System

Firefox 119.0, Arch Linux, Docker 24.0.6

Version

2.1.1

Describe the problem

Not sure if it is a bug or the intended behavior... If it's the latter, I can open a feature request if you prefer

If there are both items and widgets within a single section, it looks like items are always placed above/before the widgets despite the order in the config:

[...]
- name: Section Name
  icon: icon

  widgets:
  - type: widget1
    options:
      option1: some option
  - type: widget2
    options:
      option1: some option
   
  items:
  - title: item1
    description: item1
    icon: icon
    url: some url

With the above config, the item1 is placed above widget1 and widget2 despite being declared after them in the config file. I tried using some displayData parameters within the config file but it did not work as it seems to only affect items placement (and not widgets').

The expected behavior could be to preserve the order of the config placement (so widgets before items with the above config) or alternatively having an additional parameter to set the order. Could be something like:

[...]
displayData:
  sortBy:
    - widgets
    - items
    - [...]
[...]

Additional info

I'm looking for a way to put Glances items below the Glances widgets in the below screenshot:

2023-10-25_11-32

By the way, Dashy's awesome. Thanks for your wonderful work!

Please tick the boxes

Antiz96 avatar Oct 25 '23 09:10 Antiz96

I think that is known, I can't just find the issue where it is listed.

CrazyWolf13 avatar Nov 01 '23 19:11 CrazyWolf13

I think that is known, I can't just find the issue where it is listed.

Oh? I searched if it was already reported but couldn't find it. Really sorry if I missed it :/

Antiz96 avatar Nov 01 '23 19:11 Antiz96