Skip to content

Commit

Permalink
Fixed notes height
Browse files Browse the repository at this point in the history
  • Loading branch information
drakylar committed Jan 21, 2022
1 parent bb7859e commit 8d63a08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion templates/project/hosts/host.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ <h1 class="ui dividing header">Host: {{ escape(current_host['ip']) }}</h1>
</div>
</div>
</div>
<div class="stretched column" style="width: calc(100% - 200px);height:100%" id="host_tabs">
<div class="stretched column" style="width: calc(100% - 200px);height:100%; overflow: auto;" id="host_tabs">
<div class="ui tab active" data-tab="ports">
<table class="ui table" id="ports_list">
<thead>
Expand Down
18 changes: 9 additions & 9 deletions templates/project/notes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
<body>
<div id="segment_id">
{% include 'menu.html' %}
<div class="ui grid">
<div class="ui grid" style="height: 100%">
<div class="ui column" style="width: 75px; padding-top: 50px;">
{% include 'project/sidebar.html' %}
</div>
<div class="ui column" style="width: calc(100% - 75px)">
<div class="ui column" style="width: calc(100% - 75px); height: 100%;">
<div>
<h1 class="ui header" style="float: left">Notes</h1>
<form style="float:right" action="/project/{{ current_project['id'] }}/notes/add" method="post">
Expand Down Expand Up @@ -111,9 +111,9 @@ <h1 class="ui header" style="float: left">Notes</h1>
</script>


<div class="ui container" style="width: 100%;height: 100%;float: left;">
<div class="ui container" style="width: 100%;height: calc(100% - 100px);float: left;">
<div class="ui grid" style="height: 100%">
<div class="column" style="width: 200px; max-height: 550px; overflow: auto">
<div class="column" style="width: 200px; height: 100%; overflow: auto;">
<div class="ui vertical fluid tabular menu" style="min-width: 120px;">
{% set notes_arr = db.select_project_notes(current_project['id']) %}
{% for current_note in notes_arr %}
Expand All @@ -123,15 +123,15 @@ <h1 class="ui header" style="float: left">Notes</h1>
{% endfor %}
</div>
</div>
<div class="column" style="max-height: 550px; width: calc(100% - 200px);">
<div class="column" style="width: calc(100% - 200px); height: 100%;">
{% for current_note in notes_arr %}
<div class="ui tab" data-tab="note_{{ current_note['id'] }}">
<form id="note-form-{{ loop.index }}"
<div class="ui tab" data-tab="note_{{ current_note['id'] }}" style="height: 100%;">
<form id="note-form-{{ loop.index }}" style="height: 100%"
action="/project/{{ current_project['id'] }}/notes/edit" method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<input type="hidden" name="note_id" value="{{ escape(current_note['id']) }}"/>
<textarea type="hidden" id="textarea-{{ loop.index }}" style="display: none;">{{ current_note['text'] }}</textarea>
<div style="float: left; margin-bottom: 15px; width: 100%; height: 550px;">
<div style="float: left; margin-bottom: 15px; width: 100%; height: calc(100% - 10px)">
<div id="toolbar-container_{{ loop.index }}">
<span class="ql-formats">
<select class="ql-font"></select>
Expand Down Expand Up @@ -178,7 +178,7 @@ <h1 class="ui header" style="float: left">Notes</h1>
</span>
</div>
<div id="editor_{{ loop.index }}"
name="text" style="height: 500px; overflow: auto;"></div>
name="text" style="height: calc(100% - 70px); max-height: calc(100% - 70px); overflow: auto;"></div>
</div>
<div class="ui checkbox">
<input type="checkbox" id="checkbox-{{ loop.index }}" name="checkbox">
Expand Down

0 comments on commit 8d63a08

Please sign in to comment.