Commit d14397ff authored by Phil Hughes's avatar Phil Hughes

Fixed context translation

Fixes CSS widths when translating
parent 657664f9
...@@ -6,7 +6,7 @@ export default { ...@@ -6,7 +6,7 @@ export default {
}, },
}, },
template: ` template: `
<span v-if="count === 50 || true" class="events-info pull-right"> <span v-if="count === 50" class="events-info pull-right">
<i class="fa fa-warning has-tooltip" <i class="fa fa-warning has-tooltip"
aria-hidden="true" aria-hidden="true"
:title="__('Limited to showing 50 events at most')" :title="__('Limited to showing 50 events at most')"
......
...@@ -13,7 +13,10 @@ const lang = document.querySelector('html').getAttribute('lang') || 'en'; ...@@ -13,7 +13,10 @@ const lang = document.querySelector('html').getAttribute('lang') || 'en';
const locale = new Jed(locales[lang]); const locale = new Jed(locales[lang]);
const gettext = locale.gettext.bind(locale); const gettext = locale.gettext.bind(locale);
const ngettext = locale.ngettext.bind(locale); const ngettext = locale.ngettext.bind(locale);
const pgettext = locale.pgettext.bind(locale); const pgettext = (context, key) => {
const joinedKey = [context, key].join('|');
return gettext(joinedKey).split('|').pop();
};
export { lang }; export { lang };
export { gettext as __ }; export { gettext as __ };
......
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
} }
.stage-nav-item { .stage-nav-item {
display: block; display: flex;
line-height: 65px; line-height: 65px;
border-top: 1px solid transparent; border-top: 1px solid transparent;
border-bottom: 1px solid transparent; border-bottom: 1px solid transparent;
...@@ -247,14 +247,10 @@ ...@@ -247,14 +247,10 @@
} }
.stage-nav-item-cell { .stage-nav-item-cell {
float: left;
&.stage-name {
width: 65%;
}
&.stage-median { &.stage-median {
width: 35%; margin-left: auto;
margin-right: $gl-padding;
min-width: calc(35% - #{$gl-padding});
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment