The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(phone): three layout gaps of prompt v2 on small screens
purplefe1e77bd46fa
diff --git a/src/mobile/screens/chat/parts/mark-room.ts b/src/mobile/screens/chat/parts/mark-room.tsindex 1004302e..ec0f6000 100644--- a/src/mobile/screens/chat/parts/mark-room.ts+++ b/src/mobile/screens/chat/parts/mark-room.ts@@ -102,8 +102,11 @@ export function useMarkRoom(box: RefObject<HTMLElement | null>, active: boolean)const markPart = markShown && mark ? mark.offsetHeight + gap : 0const top = greeting.getBoundingClientRect().top + markPartconst state = greetingRoom(greeting.offsetHeight - markPart, title.getBoundingClientRect().bottom - top, space)- if (state === 'all') el.removeAttribute('data-m-greeting')- else el.setAttribute('data-m-greeting', state)+ // The words fit and the mark does not: the mark still has to go. Outside little room only data-m-greeting takes+ // it away (styles/components.css), so "all words" is said as "words" and not as no attribute. Seen in the+ // 3.1.0 e2e (320x568 upright, a notice above, the taller composer of prompt v2): the mark stayed and pushed+ // "Type below to start." under the composer.+ el.setAttribute('data-m-greeting', state === 'all' ? 'words' : state)}}const queue = () => {diff --git a/src/mobile/styles/components.css b/src/mobile/styles/components.cssindex c9d032df..49b550b5 100644--- a/src/mobile/styles/components.css+++ b/src/mobile/styles/components.css@@ -1488,6 +1488,13 @@ html[data-shell='mobile'].light .m-app .m-btn--apple {.m-composer-tune-text b {font-weight: 500;color: var(--m-t1);+ /* The model name is its own clipped box: a long name ends in an ellipsis inside the button instead of+ running past the screen edge behind the clipping (an inline box keeps its full width, 3.1.0 e2e at 200 %). */+ display: inline-block;+ max-width: 100%;+ overflow: hidden;+ text-overflow: ellipsis;+ vertical-align: bottom;}.m-composer-tune:disabled {opacity: 0.5;@@ -1660,6 +1667,7 @@ html[data-m-room] .m-chat-scroll > .m-empty > .m-empty-title {that did not fit stayed in its place, only invisible under data-m-greeting, and pushed "Ask LU anything" under thecomposer; the measure counts the greeting without it. So wherever it does not fit, it goes. */html[data-m-room] .m-chat-scroll:not([data-m-mark-fits]) > .m-empty > .m-empty-mark,+/* data-m-greeting="words": every word fits, the mark does not (screens/chat/parts/mark-room.ts). */.m-chat-scroll[data-m-greeting] > .m-empty > .m-empty-mark {display: none !important;}@@ -1777,7 +1785,10 @@ html[data-m-room='cramped']:not(.m-kb-open) .m-app .m-screen:has(.m-banners [datflex-wrap: nowrap;padding: 0 4px 4px 0;}+/* Prompt v2: the settings button took the place of the model chip and waits the same way. It grows to fill its row,+ so left there it took the whole line and the field shrank to 28 px under its icon (3.1.0 e2e, 511x272 at 200 %). */html[data-m-room='cramped']:not(.m-kb-open) .m-app .m-screen:has(.m-banners [data-testid='m-engine-notice-failed']) .m-composer-row > .m-mchip,+html[data-m-room='cramped']:not(.m-kb-open) .m-app .m-screen:has(.m-banners [data-testid='m-engine-notice-failed']) .m-composer-row > .m-composer-tune,html[data-m-room='cramped']:not(.m-kb-open) .m-app .m-screen:has(.m-banners [data-testid='m-engine-notice-failed']) .m-composer-row > .m-composer-spacer {display: none;}