[lexical-playground] Bug Fix: Stabilize text format dropdown width in toolbar (#7462)

This commit is contained in:
Kiran Dash
2025-04-14 19:01:10 +08:00
committed by GitHub
parent ac49ee32fc
commit fd52dd1ba1

View File

@ -1803,3 +1803,17 @@ button.item.dropdown-item-active i {
margin-bottom: 10px;
width: 100%;
}
.toolbar .block-controls {
display: flex;
align-items: center;
}
.toolbar .block-controls .dropdown-button-text {
width: 7em;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
}