-
-
Notifications
You must be signed in to change notification settings - Fork 5
Small improvements to the lobby pane #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,3 +25,6 @@ node_modules | |
|
|
||
| # Environment files | ||
| .env | ||
|
|
||
| # IDEs | ||
| .idea | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,4 +136,4 @@ | |
| "webpack-node-externals": "^1.7.2", | ||
| "worker-loader": "^2.0.0" | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,10 +8,17 @@ | |
|
|
||
| <div class="lobby-content"> | ||
| <h2>Open file</h2> | ||
| <button type="button" @click="openFile()">New file</button> | ||
| <div class="file-actions"> | ||
| <button type="button" @click="openFile()">New file</button> | ||
| <button type="button" @click="showOpenFileDialog">Open file...</button> | ||
| </div> | ||
| <hr v-if="recentFiles.length"> | ||
| <button type="button" v-for="file of recentFiles" :key="file" @click="openFile(file)">{{ file }}</button> | ||
| <p>Recent files</p> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should conditionally show only when there are > 0 recent files. Could wrap the whole block from the hr down the file buttons in one v-if. Also, I feel like this should be an h3, though I don't think the bold styling is necessary. I could go either way. |
||
| <button type="button" v-for="file of recentFiles" :key="file" @click="openFile(file)"> | ||
| <strong>{{ file.split('/').pop() }}</strong> | ||
| <span>{{file}}</span> | ||
| </button> | ||
| <hr v-if="recentFiles.length"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this hr is necessary anymore. |
||
| <button type="button" @click="showOpenFileDialog">Open file...</button> | ||
|
|
||
| </div> | ||
| </div> | ||
| </div> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're making these inline, maybe add some borders around them? They're just too flat, and that's my fault.