Skip to content

Commit

Permalink
Improve result layout in web interface (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
schuessf committed Apr 21, 2023
1 parent 9f5d86a commit 3d475c3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
2 changes: 2 additions & 0 deletions trunk/source/WebsiteStatic/bootstrap_dev/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ $border-radius-lg: 0px !default;
$border-radius-sm: 0px !default;
$card-inner-border-radius: 0px !default;

$toast-max-width: 100%;

.text-black-70 {
color: $gray-700 !important;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/source/WebsiteStatic/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trunk/source/WebsiteStatic/css/bootstrap.min.css.map

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions trunk/source/WebsiteStatic/css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,27 @@
white-space: nowrap;
}

.toast {
max-width: 100%;
}

#messages {
overflow: auto;
flex-flow: column;
flex-shrink: 1;
flex-grow: 0;
flex-basis: 400px;
flex-basis: 30%;
z-index: 4;
}

.oi{
top: 0;
}

.mr-1 {
margin-right: .5rem !important;
}

.number{
width: 50px;
}

.messages-actions {
cursor: pointer;
}
Expand Down
17 changes: 7 additions & 10 deletions trunk/source/WebsiteStatic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,38 +44,35 @@
<div class="toast-header">
<span class="oi mr-1 {{oi_icon}}"></span>
<strong class="mr-auto">{{shortDesc}}</strong>
<small>{{type}}</small>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="toast-body">
<div class="row">
<div class="col-1">
<div class="number">
<span>Line</span>
</div>
<div class="col-1">
<div class="number">
<span>Col</span>
</div>
<div class="col-10">
<div class="col">
<span>Description</span>
</div>
</div>
<hr>
<div class="row">
<div class="col-1">
<div class="number">
<span>
{{#ifCond startLNr '!==' -1}}{{startLNr}}{{/ifCond}}
{{#ifCond startLNr '===' -1}}-{{/ifCond}}
</span>
</div>
<div class="col-1">
<div class="number">
<span>
{{#ifCond startCol '!==' -1}}{{startCol}}{{/ifCond}}
{{#ifCond startCol '===' -1}}-{{/ifCond}}
</span>
</div>
<div class="col-10">
<div class="col">
<pre><code class="text-break break-spaces">{{longDesc}}</code></pre>
</div>
</div>
Expand All @@ -85,7 +82,7 @@
<script id="tool-interface-template" type="text/x-handlebars-template">
<div id="editor" class="flex-grow-1 flex-shrink-1"></div>
<div id="messages" class="bg-light border-top top-shaddow p-1">
<div class="btn col-12 float-right">
<div class="text-end">
<span id="move-messages" class="oi oi-collapse-right pr-1 float-right messages-actions close"></span>
</div>
<div id="messages-toasts"></div>
Expand Down

0 comments on commit 3d475c3

Please sign in to comment.