L
LLLOS.ai
Career
L
◆ AI Learning · Situational

How should a developer design a dialog box that needs to show many options?

A dialog box must always respect vertical margins. If a dialog box needs too much space, it should be split into two separate screens. This prevents content from being cut off or appearing cramped.

By Pawan Nayar · from the LLOS AI Learning record

The rule

A dialog box must always respect vertical margins.

If a dialog box needs too much space, it should be split into two separate screens. This prevents content from being cut off or appearing cramped.

A dialog box should not cut off content. It should always fit within the screen's vertical space. If a dialog box requires many choices, it is better to use two separate screens. This keeps each screen clear and easy to use.

A developer creates a dialog box asking about a user's learning profile. The box needs to show six profile types and twenty interest options. Instead of one long, scrolling box, the developer designs two screens. The first screen asks, 'Who's learning today?' and shows the six profile types. The second screen asks, 'Pick 1-3 interests' and shows the twenty hobby options. This makes the process clear for the user.

Words you'll need

Resolved from this lesson's own record — real definitions, not invented for this page.

Human-Computer Interaction

How people and computers communicate and work together

Interaction Paradigms

The different ways you talk to an AI system

Questions people ask

More from the same record, pulled by shared topic — not written new for this page.

How should content modules be displayed in the user interface?

Content modules need specific display rules. These rules tell the system how to show the information.

How do I ensure a consistent brand identity across all web pages?

All web pages must use the same brand colors. Do not create new color schemes.

Why should a developer use one HTML file with CSS breakpoints instead of two separate files for desktop and mobile versions?

The difference between desktop and mobile views should be handled by CSS, not by having separate files. Desktop rules go inside `@media (min-width:901px)`.

How can a developer make sure a user sees the top of new content in a reusable panel or modal?

A developer should reset the scroll position of a reusable panel or modal. This action must happen before the panel or modal displays new content.

What to remember

A dialog box must always respect vertical margins. If a dialog box needs too much space, it should be split into two separate screens. This prevents content from being cut off or appearing cramped.