Skip to content

Commit

Permalink
Prevent a change in height when switching from a dir to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed Aug 8, 2019
1 parent 0fad368 commit a728ed1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/app/styles/core/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $button-box-shadow-standard: 0 2px 0 0 rgba($grey, 0.2);

&.is-compact {
padding: 0.25em 0.75em;
margin: -0.25em -0.25em -0.25em 0;
margin: -0.25em 0;

&.pull-right {
margin-right: -1em;
Expand Down
8 changes: 4 additions & 4 deletions ui/app/templates/components/task-file.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<span class="pull-right">

{{#if (not fileTypeIsUnknown)}}
<a data-test-log-action="raw" class="button is-white" href="{{catUrl}}" target="_blank" rel="noopener noreferrer">View Raw File</a>
<a data-test-log-action="raw" class="button is-white is-compact" href="{{catUrl}}" target="_blank" rel="noopener noreferrer">View Raw File</a>
{{/if}}
{{#if (and isLarge isStreamable)}}
<button data-test-log-action="head" class="button is-white" onclick={{action "gotoHead"}}>Head</button>
<button data-test-log-action="tail" class="button is-white" onclick={{action "gotoTail"}}>Tail</button>
<button data-test-log-action="head" class="button is-white is-compact" onclick={{action "gotoHead"}}>Head</button>
<button data-test-log-action="tail" class="button is-white is-compact" onclick={{action "gotoTail"}}>Tail</button>
{{/if}}
{{#if isStreamable}}
<button data-test-log-action="toggle-stream" class="button is-white" onclick={{action "toggleStream"}}>
<button data-test-log-action="toggle-stream" class="button is-white is-compact" onclick={{action "toggleStream"}}>
{{x-icon (if logger.isStreaming "media-pause" "media-play") class="is-text"}}
</button>
{{/if}}
Expand Down

0 comments on commit a728ed1

Please sign in to comment.