Skip to content

Adapt layout for mobile and tablet screens - #368

Open
Kuchizu wants to merge 3 commits into
mainfrom
feat/mobile-adaptation
Open

Kuchizu wants to merge 3 commits into
mainfrom
feat/mobile-adaptation

Conversation

@Kuchizu

@Kuchizu Kuchizu commented Sep 23, 2026

Copy link
Copy Markdown
Member

Adapted the web client for phones and tablets. Sidebars now stack below 768px and are hidden when empty below 1300px, the note grid is fluid, and inputs use 16px so iOS does not zoom on focus. Desktop is unchanged.

02-iphone-14-note

See all screenshots here: Screenshots.zip

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
codex-ui Ready Ready Preview Oct 3, 2026 11:23pm UTC

@Kuchizu
Kuchizu requested a review from neSpecc September 23, 2026 19:42

@neSpecc neSpecc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! My main comments are related to CodeX UI design system. It should stay well-organized. Lets find a way how to unhardcode some values. And maybe we should think about how generally the Design System should be responisble.

color: var(--base--text);
}

@media (max-width: 768px) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems hardcoded. We need to find a centralized way for specifying breakpoit values. For example thought the @custom-media (required postcss-custom-media plugin)

min-width: 0;
}

> :nth-child(n + 3) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve element by class name instead

Comment on lines +150 to +151
width: 96px;
height: 64px;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoded valued. All sizes should be stored in "dimensions.pcss" and have a universal names.

@media (max-width: 768px) {
.cdx-search-field__input,
.ce-inline-tool-input {
font-size: 16px;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoded values. Consider using typography styles from typography.pcss

border-radius: var(--radius-field);

@media (max-width: 768px) {
font-size: 16px;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

}

&__center {
flex-basis: 8rem;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where this value came from?

Comment thread src/presentation/pages/Note.vue Outdated
/**
* On mobile the note hierarchy goes below the note instead of the sidebar, and only when the note has relatives
*/
const isMobile = useMediaQuery('(max-width: 768px)');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to create a universal shared composable with this property. It can be used in other places

@Kuchizu

Kuchizu commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

Nice job! My main comments are related to CodeX UI design system. It should stay well-organized. Lets find a way how to unhardcode some values. And maybe we should think about how generally the Design System should be responisble.

Thanks! Fixed all of them. I think the kit should own responsive behavior of its layout components, and apps only reuse its breakpoints.

--size-avatar: 30px;
--size-cover: 150px;
--size-cover-small: 96px;
--size-text-min: 120px;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe --layout-text-width-min?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

.card-skeleton__cover {
width: 96px;
height: 64px;
width: var(--size-cover-small);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, we should override --size-cover for mobile viewport in dimensions.css instead

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

This branch was successfully deployed

1 active deployment
Preview — a8b4f62e Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants