Display drive folder name in navigation bar with responsive design#619
Display drive folder name in navigation bar with responsive design#619
Conversation
Co-authored-by: pierzchala-m <162727606+pierzchala-m@users.noreply.github.com>
|
@copilot action Deploy Pull Request to test server should be invoked. The label was added. What is wrong? |
Co-authored-by: pierzchala-m <162727606+pierzchala-m@users.noreply.github.com>
The workflow was missing the |
|
@copilot If you return to the list of drives, the previously selected name should not remain displayed. |
Co-authored-by: pierzchala-m <162727606+pierzchala-m@users.noreply.github.com>
There was a problem hiding this comment.
Replace "drive-name" with "d-none d-lg-inline"
Replace search box "dropdown" with "dropdown d-none d-md-inline"
There was a problem hiding this comment.
Applied in commit 0bc4c5d. Drive name class changed to d-none d-lg-inline and search box dropdown class changed to d-none d-md-inline.
ggodlewski
left a comment
There was a problem hiding this comment.
Replace "drive-name" with "d-none d-lg-inline"
Replace search box "dropdown" with "dropdown d-none d-md-inline"
|
@copilot Replace "drive-name" with "d-none d-lg-inline" |
Co-authored-by: pierzchala-m <162727606+pierzchala-m@users.noreply.github.com>
Applied in commit 0bc4c5d. Both changes implemented:
|


Summary
This PR addresses the issue where the navigation bar only showed "WikiGDrive" as a static brand name, making it unclear which folder the user is currently working in. Additionally, it implements responsive design to optimize the navbar for mobile and tablet devices.
Problem Statement
As shown in the original issue, users working in the web interface couldn't easily identify which wikigdrive folder they were working in, as the navigation bar only displayed "WikiGDrive" without any context about the current folder.
Solution
Modified
NavBar.vueto display the drive/folder name alongside "WikiGDrive" when a drive is selected:WikiGDrive - [Folder Name]WikiGDrive(backward compatible)WikiGDrive(prevents confusion)Visual Demonstration
Original Fix
Drives List Page Fix
Responsive Design Enhancement
The screenshots demonstrate:
Technical Details
apps/ui/src/components/NavBar.vueapps/ui/src/components/NavSearch.vuerootFolder.nameproperty fromthis.$root.driveisOnDrivesListPagecomputed property to check if$route.name === 'drives'v-if="rootFolder && rootFolder.name && !isOnDrivesListPage"class="d-none d-lg-inline"(hidden on small/medium screens, visible on large+ screens ≥992px)class="dropdown d-none d-md-inline"(hidden on small screens, visible on medium+ screens ≥768px)Responsive Behavior
Verification
Recent Changes
labeledevent type topull-request-deploy.ymlso the deploy action triggers when thedeploy-prlabel is addedChecklist
rootFolder.nameOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.