Fix icons from settings page disappears when nav item overflows#24378
Fix icons from settings page disappears when nav item overflows#24378olivierperdaens wants to merge 8 commits intonextcloud:masterfrom
Conversation
|
Hi @olivierperdaens, thanks for your contribution! :) It does fix the vanishing icon, but it causes all the entries to be shifted to the right:
|
|
@ma12-co @juliushaertl isn’t this something we have a Vue component for we should use here btw? |
No, the settings is not migrated to vue, (and will most likely never be btw :p) |
|
@jancborchardt Indeed, it creates a shifting. This is because, the margin are also used for the navigation-bar on the main page. And on that page, the svg logo are prepended to the "nav-item". Which is different for the settings page where the svg logo is "part" of the "nav-item". I tryed to understand how the main page's navigation-bar was generated but I couldn't completely understand it (it is handled in a different way, and as it is my first contribution I still don't have a global vue on the project). I can dig deeper to try solving the vanishing icons without changing the margin on the setting's navigation-bar !
|
|
@jancborchardt I keep searching this afternoon and I came to a fix. I'll let you check and come back to me if there is anything more to change ! |
core/css/apps.scss
Outdated
| } | ||
| } | ||
| /* Main entry link */ | ||
| .settings_nav_item{ |
There was a problem hiding this comment.
Sorry, no, those fixes are global.
The apps.scss must not contain any settings specific changes.
You can test yourself the available html options for the navigation menu.
The img needs to be fixed instead https://docs.nextcloud.com/server/stable/developer_manual/design/navigation.html#app-navigation-menu
There was a problem hiding this comment.
Ok, sorry. I'll try to fix this in another way !
There was a problem hiding this comment.
Hi @skjnldsv ! I worked on fixing the img css instead of creating a specific class for the settings'navigation menu (as you advised me) and I came to a satisfying result. Please let me know if it's better or if it still needs to be done another way.
…-items Signed-off-by: Olivier Perdaens <olivier.perdaens@student.uclouvain.be>
Signed-off-by: Olivier Perdaens <olivier.perdaens@student.uclouvain.be>
Signed-off-by: Olivier Perdaens <olivier.perdaens@student.uclouvain.be>
Signed-off-by: Olivier Perdaens <olivier.perdaens@student.uclouvain.be>
Signed-off-by: Olivier Perdaens <olivier.perdaens@student.uclouvain.be>
Signed-off-by: Olivier Perdaens <olivier.perdaens@student.uclouvain.be>
Signed-off-by: Olivier Perdaens <olivier.perdaens@student.uclouvain.be>
Signed-off-by: Olivier Perdaens <olivier.perdaens@student.uclouvain.be>
1e308f7 to
6a7e9e4
Compare
| position: absolute; | ||
| top: 15px; | ||
| margin-right: 11px; | ||
| width: 16px; | ||
| height: 16px; | ||
| margin-left: -30px; | ||
| margin-left: -30px; |




Fixing #23849 bug.
Issue was general for the settings page: when a navigation item text overflows, svg icons disapeared.
Some minor changes in the apps.scss file fixed the issue.
How to test: