HumanSignal / HumanSignal/label-studio

Bug: List does not render when combined with flexbox layout

Open
#7,536 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
There's a UI rendering bug when using flexbox layout and `List` tags. With this combination, no List will appear. However, if there is a second `` that follows the first list, then both of the lists will render.

**To Reproduce**
I was able to reproduce with the following code
```


.flex-row {
display: flex;
flex-direction: row;
}

.flex-col {
display: flex;
flex-direction: column;
}

.align-center {
align-items: center;
}

.justify-between {
justify-content: space-between;
}

.flex-1 {
flex: 1;
}

.bottom-border {
border-bottom: 1px solid black;
margin-bottom: 10px;
}

.right-border {
border-right: 1px solid black;
padding-right: 5px;
margin-right: 5px;
}

.htx-ranker-column h1 {
font-size: 1.25rem;
}















</View>

</View>
</View>
```

**Expected behavior**
I expect to be able to render `List` components in a flexbox row.

**Screenshots**
screenshots are from UI Preview, but the issue also exists when rendering actual tasks.

List disappeared when using flexbox

![Image](https://github.com/user-attachments/assets/3686ec00-83d4-4783-b2aa-be7aa0945f1a)

List re-appears when using a second (hidden) List tag.

![Image](https://github.com/user-attachments/assets/adc7153d-d234-4e82-be54-cddefbd16d49)

**Environment (please complete the following information):**
- OS: Mac OS with Firefox (and Chrome)
- Label Studio 1.17.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.