|
1 | 1 | <template> |
2 | | - <BlockUI ref="blockUi" class="opencor overflow-hidden h-full" |
| 2 | + <BlockUI ref="blockUi" |
| 3 | + class="opencor overflow-hidden h-full" |
| 4 | + :class="showMainMenu ? 'with-main-menu' : ''" |
3 | 5 | :blocked="compBlockUiEnabled" |
4 | 6 | @click="activateInstance" |
5 | 7 | @focus="activateInstance" |
|
21 | 23 | > |
22 | 24 | <input ref="files" type="file" multiple style="display: none;" @change="onChange" /> |
23 | 25 | <DragNDropComponent v-show="dragAndDropCounter" /> |
24 | | - <MainMenu :id="mainMenuId" v-if="!electronApi && !omex" |
| 26 | + <MainMenu :id="mainMenuId" v-if="showMainMenu" |
25 | 27 | :isActive="compIsActive" |
26 | 28 | :uiEnabled="compUiEnabled" |
27 | 29 | :hasFiles="hasFiles" |
@@ -159,6 +161,10 @@ const compIsActive = vue.computed(() => { |
159 | 161 | return activeInstanceUid.value === crtInstanceUid; |
160 | 162 | }); |
161 | 163 |
|
| 164 | +const showMainMenu = vue.computed(() => { |
| 165 | + return !electronApi && !props.omex; |
| 166 | +}); |
| 167 | +
|
162 | 168 | // Determine whether the component UI should be blocked/enabled. |
163 | 169 | // Note: compBlockUiEnabled is used to determine whether PrimeVue's BlockUI component should be enabled, whereas |
164 | 170 | // compUiEnabled is used to determine whether the UI should be enabled (it checks whether various dialogs are |
@@ -1229,6 +1235,15 @@ const onGitHubButtonClick = async (): Promise<void> => { |
1229 | 1235 | color: var(--p-red-700); |
1230 | 1236 | } |
1231 | 1237 |
|
| 1238 | +.with-main-menu { |
| 1239 | + :deep(.p-dialog-mask) { |
| 1240 | + padding-top: 28px !important; |
| 1241 | + } |
| 1242 | + :deep(.p-message) { |
| 1243 | + margin-top: 14px !important; |
| 1244 | + } |
| 1245 | +} |
| 1246 | +
|
1232 | 1247 | @media (prefers-color-scheme: dark) { |
1233 | 1248 | .connected-to-github, |
1234 | 1249 | :deep(.connected-to-github .pi-github) { |
|
0 commit comments