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

IBX-2287: Context menu in location view doesn't respect it's max available width #323

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
{% block body_class %}ibexa-content-view{% endblock %}

{% block content_tree %}
{% set content_tree_width = app.request.cookies.get('ibexa-tb-ibexa-content-tree-container-width') %}
{% set container_width_cookie = 'ibexa-tb-ibexa-content-tree-%d-container-width'|format(ibexa_admin_ui_config.user.user.id) %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should use one method when connecting strings? %d or #

{% set content_tree_width = app.request.cookies.get(container_width_cookie) %}
{% set content_tree_width_style = "width: #{content_tree_width}px;" %}

<div class="ibexa-content-tree-container"
Expand Down