@eclipse-docks/core 0.7.106 → 0.7.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-docks/core",
3
- "version": "0.7.106",
3
+ "version": "0.7.107",
4
4
  "description": "Eclipse Docks platform core: registries, services, parts, widgets, and API",
5
5
  "type": "module",
6
6
  "license": "EPL-2.0",
@@ -3,6 +3,7 @@ import { customElement } from "lit/decorators.js";
3
3
  import { DocksElement } from "../parts/element";
4
4
  import { currentLanguageSignal, supportedLocalesSignal, SETTINGS_KEY_LANGUAGE } from "../core/i18n";
5
5
  import { appSettings } from "../core/settingsservice";
6
+ import { icon } from "../core/icon-utils";
6
7
 
7
8
  function getDialogContainer(): HTMLElement {
8
9
  let container = document.getElementById('global-dialog-container');
@@ -128,7 +129,7 @@ export class DocksLanguageSelector extends DocksElement {
128
129
  protected render() {
129
130
  const currentLanguage = currentLanguageSignal.get();
130
131
  const languageName = getLanguageName(currentLanguage);
131
- const buttonLabel = `${currentLanguage.toUpperCase()} ${languageName}`;
132
+ const buttonLabel = `${languageName} ${currentLanguage.toUpperCase()}`;
132
133
 
133
134
  return html`
134
135
  <wa-button
@@ -136,6 +137,7 @@ export class DocksLanguageSelector extends DocksElement {
136
137
  size="small"
137
138
  title="Current language: ${languageName}"
138
139
  @click=${() => showLanguageSelectorDialog()}>
140
+ ${icon('language')}
139
141
  ${buttonLabel}
140
142
  </wa-button>
141
143
  `;
package/src/parts/tabs.ts CHANGED
@@ -449,10 +449,26 @@ export class DocksTabs extends DocksContainer {
449
449
  display: none !important;
450
450
  }
451
451
 
452
+ /* Tab strip (wa-tab-group part tabs, inside shadow .nav); hiding only wa-tab leaves an empty nav row. */
453
+ :host([hide-tabs]) wa-tab-group::part(tabs) {
454
+ display: none;
455
+ }
456
+
452
457
  :host([hide-tabs]:not([with-toolbar])) wa-tab-group::part(nav) {
453
458
  display: none;
454
459
  }
455
460
 
461
+ /* Single grid row so the body uses 1fr instead of the auto nav row when tabs are hidden. */
462
+ :host([hide-tabs]:is([placement="top"], [placement="bottom"])) wa-tab-group::part(base) {
463
+ grid-template-rows: minmax(0, 1fr);
464
+ }
465
+
466
+ :host([hide-tabs]) wa-tab-group::part(body) {
467
+ min-height: 0;
468
+ height: 100%;
469
+ overflow: hidden;
470
+ }
471
+
456
472
  :host(:is([placement="top"], [placement="bottom"])) wa-tab-group::part(base) {
457
473
  display: grid;
458
474
  grid-template-rows: auto minmax(0, 1fr);