Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve mobile view by using horizontal-split mobile layout #3046

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

devlinjunker
Copy link
Contributor

Summary

Uses new mobileLayout prop of NcAppContent from nextcloud-libraries/nextcloud-vue#6364 and sets to horizontal-split
Adds Navigation Arrows to top of FeedItemDisplay to go to next/previous item when in mobile view

Depends on nextcloud-libraries/nextcloud-vue#6364

Checklist

@wofferl
Copy link
Collaborator

wofferl commented Jan 11, 2025

It looks good so far, there are a few incorrect formatting npm run lint notes.

@devlinjunker devlinjunker requested a review from wofferl January 11, 2025 18:10
Copy link
Collaborator

@wofferl wofferl left a comment

Choose a reason for hiding this comment

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

Forgot to submit the review :)
Please look at the suggestion.

src/components/feed-display/FeedItemDisplay.vue Outdated Show resolved Hide resolved
@@ -7,6 +7,24 @@
<ShareItem v-if="showShareMenu" :item-id="item.id" @close="closeShareMenu()" />

<div class="action-bar">
<NcActions v-show="!hideItemNav"
Copy link
Collaborator

Choose a reason for hiding this comment

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

The nav items should also not be shown in the screen reader mode, where the DisplayItem is used in the list.

Suggested change
<NcActions v-show="!hideItemNav"
<NcActions v-show="!splitModeOff"

The layout info is already in the component, otherwise you should add the prop also in FeedItemDisplayList where FeedItemDisplay is used for the screen reader mode.

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