Skip to content

Commit

Permalink
Fix import bugs and make window not resizable.
Browse files Browse the repository at this point in the history
  • Loading branch information
proAlexandr committed Jun 5, 2019
1 parent ffada30 commit 9e59270
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 11 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ function createWindow() {
* Initial window options
*/
mainWindow = new BrowserWindow({
height: 563,
height: 542,
useContentSize: true,
width: 1000,
width: 800,
titleBarStyle: 'hiddenInset',
resizable: process.env.NODE_ENV === 'development',
webPreferences: {
nodeIntegration: true
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/menuTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export default function buildMenuTemplate(app) {
submenu: [
{ role: 'reload' },
{ role: 'forcereload' },
{ role: 'toggledevtools' },
process.env.NODE_ENV === 'development' && { role: 'toggledevtools' },
{ type: 'separator' },
{ role: 'resetzoom' },
{ role: 'zoomin' },
{ role: 'zoomout' },
{ type: 'separator' },
{ role: 'togglefullscreen' }
]
].filter(Boolean)
},
{
role: 'window',
Expand Down
1 change: 1 addition & 0 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ body {
color: #142d55; /* = $color-text */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: flex;
}
.body_target_web {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/ClusterImport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ export default {
clusterId: cluster.id
})
}))
this.$router.push('/')
}
this.$router.push('/')
}
}
}
Expand Down
16 changes: 14 additions & 2 deletions src/renderer/components/Clusters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Header>
<SearchInput v-model="query" size="s" />
<div class="space" />
<Dropdown theme="primary">
<Dropdown>
<template v-slot:trigger="triggerSlotProps">
<Button :outline="!triggerSlotProps.opened" theme="primary" @click="triggerSlotProps.toggle">
Add a cluster
Expand All @@ -31,7 +31,19 @@
</template>

<template v-else>
<Button size="l" theme="primary" to="/clusters/new">Add a cluster</Button>
<Dropdown>
<template v-slot:trigger="triggerSlotProps">
<Button theme="primary" size="l" @click="triggerSlotProps.toggle">
Add a cluster
<IconArrowDropdown :to="triggerSlotProps.opened ? 'top' : 'bottom'" />
</Button>
</template>

<ul class="popup__actions">
<li><Action to="/clusters/new">FROM SCRATCH</Action></li>
<li><Action to="/clusters/import">FROM IMPORT</Action></li>
</ul>
</Dropdown>
</template>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ main {
}
.app-container {
min-height: 100%;
display: flex;
flex-direction: column;
flex-grow: 1;
}
</style>

0 comments on commit 9e59270

Please sign in to comment.