Skip to content
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

better file editor layout #3924

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions apps/dashboard/app/views/files/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@

<div id="editor-filename" class="text-center mb-2"><%= @path %></div>

<div class="d-flex flex-row flex-grow-1">
<div class="flex-column col-3 card mx-2">
<div class="flex-column col-sm-1 card mx-2 text-center">

<div class="card-header">
<p id="editor-filename" class="navbar-text m-0 ms-2"><%= @path %></p>
<div class="d-grid gap-2">
<button class="btn btn-primary" id="save-button">
<i class="fas fa-save pe-2" aria-hidden="true"></i>
<span>Save</span>
</button>
</div>
</div>


<ul class="list-group list-group-flush border-bottom-0">
<li class="list-group-item hidden-xs hidden-sm hidden-md px-2 form-group form-inline m-0">
<label class="control-label navbar-text px-1" for="keybindings">Key Bindings</label>
Expand Down Expand Up @@ -223,14 +233,6 @@

<div class="card-body border-0"></div>

<div class="card-footer">
<div class="d-grid gap-2">
<button class="btn btn-primary" id="save-button">
<i class="fas fa-save pe-2" aria-hidden="true"></i>
<span>Save</span>
</button>
</div>
</div>
</div>
<pre class="flex-grow-1" id="editor" data-path="<%= @path %>" data-api="<%= OodAppkit.files.api(path: @path, fs: @filesystem) %>"><%= @content %></pre>
</div>
Loading