# DB2 ui-led (feature request may be?)

**URL:** https://discourse.nodered.org/t/db2-ui-led-feature-request-may-be/96166
**Category:** Dashboard
**Tags:** dashboard-2
**Created:** [21 March 2025 23:06 UTC](https://discourse.nodered.org/t/db2-ui-led-feature-request-may-be/96166 "2025-03-21T23:06:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mrb32](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@Mrb32](https://discourse.nodered.org/u/Mrb32)
#### Post date: [21 March 2025 23:06 UTC](https://discourse.nodered.org/t/db2-ui-led-feature-request-may-be/96166/1 "2025-03-21T23:06:40Z")

</div>

Hi,

I am getting up to speed with DB2, ui-led seems to be behaving differently than on DB1.

On DB1, with no label name set, the LED will simply appear centred based on the width set for the widget or group.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/3/934e92ce13c8b5949b7d82ca0774bf37a8c8f6d1.png)

Different story on DB2, some space seems to be reserved for a label, even if it is left empty, The LED is either left or right of this space. And I cannot see any obvious option to change this.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/365f9b7fb6438c3abf1b74c4dcaaf2b2f38ba603.png)

Is there a way to make the DB2 version behave like on DB1, ie. centre across the available or set width when the label is left blank?

Thanks for your input...

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [22 March 2025 02:22 UTC](https://discourse.nodered.org/t/db2-ui-led-feature-request-may-be/96166/2 "2025-03-22T02:22:53Z")

</div>

You can centre the LED with a bit of CSS in a ui-template node.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/8/c87bccaa08db0f902015cdaab72dcb1b4b17b256.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/f/bfa39440453af35e04ad9a44ec991ed2b7b6249c.png)

---

<div class="post-metadata">

### Author: ![Mrb32](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@Mrb32](https://discourse.nodered.org/u/Mrb32)
#### Post date: [22 March 2025 08:04 UTC](https://discourse.nodered.org/t/db2-ui-led-feature-request-may-be/96166/3 "2025-03-22T08:04:18Z")

</div>

Thanks for this, much appreciated.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [5 April 2025 08:05 UTC](https://discourse.nodered.org/t/db2-ui-led-feature-request-may-be/96166/4 "2025-04-05T08:05:16Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
