@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
22 lines (20 loc) • 767 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getPanelLayoutDefaults = getPanelLayoutDefaults;
var _fg = require("@atlaskit/platform-feature-flags/fg");
var DEFAULT_PANEL_WIDTH = 365;
var DEFAULT_PANEL_WIDTH_WITH_CHAT_PANEL_LAYOUT = 400;
/**
* Local-panel defaults in pixels, used only when no explicit preference exists.
* Keep the existing desktop width until chat layout rolls out. Compact sizing is independent.
* These are requested defaults, not measurements of an open panel.
*/
function getPanelLayoutDefaults() {
return {
panelWidth: (0, _fg.fg)('platform-dst-chat-panel-layout') ? DEFAULT_PANEL_WIDTH_WITH_CHAT_PANEL_LAYOUT : DEFAULT_PANEL_WIDTH,
compactPanelWidth: 320,
panelMinWidth: 320
};
}