Skip to content

Settings menus clip the chosen label, so it is readable only while the menu is open #1127

Closed

Description

@Alena-Selezneva

Request

@kostmain, MoonTerminal chat, 2026-10-28. Screenshot of Вид детектов, block Поля: the closed menus read Моне…, Стра…, Тип….

В окне настроек Вид детекта меню с длинными названиями не влезают в выбранное итоговое значение.

Чтобы понять, что в итоге выбрано приходиться открывать меню.

Проверь все аналогичные меню в других настройках, чтобы выбранное слово из меню в итоге полностью отображалось после его выбора.

Please verify the layout before implementing. The closed control must show the chosen word in full. A fixed box that is shorter than that word is the bug. Growing every box to the longest string in every language will overflow rows that were sized around the short box; the window has to follow the buttons.

Closed #1120 is a different window (module editor). Its period menu already grows to the label, and 1000 сд fits. Do not reopen it for this.

What is cut

Measured at the standard button size (Sm, 14px monospace), caret included, horizontal padding of the closed menu included. The open list is already wider and shows the full line. None of these closed menus have a tooltip with the full label.

Detect card fields (Вид детектов → Поля). Closed box is 76px wide, about five letters plus the arrow.

Russian that is cut: Монета → Моне…, Стратегия → Стра…, Тип биржи → Тип…. That is the screenshot.

Russian that fits: —, Время, Ядро, Бейдж, Биржа, Δ 24ч, Δ 1ч.

The same box also cuts, among others, Strategy, Exchange, Exchange type, Tipo de exchange, Tipo de corretora, Chiến lược, Borsa türü, Тип біржі. Three Russian long labels plus the three slot toggles still fit the current 560px popup. Tipo de corretora does not fit three-across in that popup, so the popup width has to be derived from the buttons (the module-list popup already derives its width from its band menu).

Module band in the caption-module list. Box is 104px, commented as sized to the longest band name. It is not.

Cut: Стакан верх, Стакан низ, Chart bottom, Book bottom, Topo do gráfico, Base do gráfico, Đỉnh biểu đồ, and the other long band names. Чарт верх is one pixel over and therefore becomes Чарт ве…. Чарт низ fits. Raising the box widens the popup, because the popup width is derived from it.

Sound menus fixed at 94px, same catalog:

  • Настройки ядра → Звуковые алерты
  • Тревоги: что ловить, column Звук
  • Настройки ядра — экспертный режим

Cut: YES_MAST, Fatality, LetsRock (about 3px over) and ComeGetSome (clearly over). Shorter built-ins (Alarm, BABYTOY, ringout, …) fit. The open menu is wide enough for ComeGetSome.

Figures panel sound menu, 120px. Only ComeGetSome misses, by about 2px. A user sound file with a longer name misses too.

Chosen names in a fixed box (the word is the user's, so there is no longest label):

  • Настройки кнопок стратегий: strategy column 164px (about 16 letters), hook column 130px (about 11). без хука fits.
  • Strategy cell on a figure row: 150px, about 14 letters.
  • Telegram notification chat picker: 200px, about 20 letters of a chat title.
  • Connections card, group picker: 200px with the arrow at the right edge; a long group name is cut. The fixed Russian choices Авто (по счёту), Не учитывать, Отдельно fit. Turkish Otomatik (hesaba göre) and Vietnamese Tự động (theo tài khoản) do not.

Стратегия алертов in core settings already grows to the chosen name between 120 and 240. That is the behaviour the fixed name-boxes do not have.

Hotkeys, Вид переноса. This menu does not insert an ellipsis. It puts the whole phrase in a 176px button inside a 184px key cell. The phrase is wider than the cell: Параллельно к курсору, Сначала крупный объём, Последний выставленный, and the long phrases in other languages. The tail runs out of the cell.

Telegram bot menu, 140px. Russian fits (по биржам, по ядрам, Группы, По закрытию, По открытию). Cut elsewhere: Portuguese Pela data de fechamento / Pela data de abertura, Turkish Kapanış tarihine göre / Açılış tarihine göre / çekirdeğe göre, Ukrainian За датою закриття / За датою відкриття, Vietnamese Theo ngày đóng.

What already shows the chosen word

  • Volumes popup, profile window: Авто, Макс, 1m, 15m, 1d fit the 80px box.
  • Module editor, Период and the timeframe menu: they grow to the label up to 160px. 1000 сд fits. This is the Module editor: labels collide, Reset crosses the frame, period 1000 is cut off #1120 fix.
  • Module gap menu: only 0…24, no arrow glyph, fits.
  • Strategy field menus whose choices are the core's fixed list (Last15mDelta, DVolToHVolDesc, Futures Only, …): the longest static token still fits the 180px box. A dynamic choice that is a strategy name uses that same box and is cut like the manual-button columns.
  • Settings page Звуки сделок: the box is wider than ComeGetSome.
  • Storage margin (120 мин and the shorter steps) fits its box.

What to change

The closed menu should be as wide as the chosen label (arrow and padding included), the way the module-editor period menu and Стратегия алертов already are. Cap a user-typed name at the width of its row, and grow the popup when the cap would otherwise push the trailing buttons out — do not ellipsize a fixed vocabulary word to keep an old popup width.

Ship the check the module editor already has: every shipped language, the longest choice of each of these menus, at the standard size and at the shipped font delta, the closed control at least as wide as the label.

Activity

  1. Alena-Selezneva commented on Oct 29, 2026

    @Alena-Selezneva
    ContributorAuthor

    2026-10-29, same bug, opposite paint

    @kostmain, MoonTerminal chat. Hotkeys, tab Мышь на стакане. Screenshot with yellow arrows on the closed move-kind buttons.

    Окно Горячие клавиши, вкладка Мышь в стакане, если на кнопку выбираешь длинное название, то оно выходит за его левые границы.

    Проверь на всех вкладках и окнах, чтобы длинные названия при выборе из меню, помещались в границы заданных кнопок и писались без сокращений.

    The tab's own title is Мышь на стакане. The arrows mark the second button on a move row (menu header Вид переноса), not the gesture button above it.

    What the shot shows

    This menu still does not insert an ellipsis. The button stays 176px wide inside the 184px key cell, the same width as Left dbl / Shift+Left / Не задано. The chosen phrase is centered and not clipped, so both ends leave the button. The arrows mark the left start (Параллельно к курсору, Последний выставленный). The caret leaves the right edge by the same amount. "The tail runs out of the cell" from the original write-up is the right side only; the left side is what he photographed, and it crosses straight into Где работает because the button sits on the left of a cell that is only 8px wider.

    Measured with Geist Mono Regular at the standard button size (14px, 8.4px per glyph that the font actually has). The caret ▾ is not in that font, so its width is a fallback; the numbers below are the phrase plus the space before the caret, caret width not included:

    Chosen label Width before the caret Against the 176px button
    Последний выставленный 193.2 wider than the button
    Параллельно к курсору 184.8 wider than the button
    Сначала крупный объём 184.8 wider than the button
    Сначала малый объём 168.0 inside 176 only if padding is extra; over if the 8px padding each side is inside the 176
    Сначала прибыльный 159.6 fits the 176 before the caret
    Последний перенос 151.2 fits
    Все в одну цену 134.4 fits
    Нет 33.6 fits

    The three that are already wider than 176px overflow whether or not the padding sits inside that width. Each side also has 8px of padding, so the text area is tighter than 176 if that width is the outer box.

    Other hotkey tabs, rechecked

    Same button, same width. Their chosen labels fit, caret space included, even with padding inside the 176:

    • Gestures, longest Shift+Left dbl — 126px. The button shows the short form (Left dbl), not the longer menu line with the MoonBot name in parentheses.
    • Chart wheel, longest Shift + колесо — 126px.
    • Percent ruler, longest Shift + ЛКМ — 100.8px.
    • Split parts, Частей: 10 — 92.4px.

    Presets, trading commands, drawing, order shift and manual strategies have no second long menu on the button.

    What he asked for is already this issue

    Full chosen word, no abbreviation, inside the button. That is the "What to change" above: grow the closed control to the label, do not ellipsize a fixed vocabulary word. The places that already cut with … stay in the original list. This comment only corrects the hotkeys paint (both edges, left one marked) and records that the other hotkey tabs do not overflow.

    Spanish Primero mayor volumen and Primero menor volumen are 21 letters, the same as Параллельно к курсору. Treat them with the Russian three.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions