Skip to content

Commit a27de41

Browse files
committed
[gchq#181] reduce title-height from 48 to 40
1 parent fefb98e commit a27de41

File tree

6 files changed

+20
-17
lines changed

6 files changed

+20
-17
lines changed

src/web/App.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -904,9 +904,9 @@ class App {
904904
assignAvailableHeight( isMobile ){
905905
const bannerHeight = 40;
906906
const controlsHeight = 50;
907-
const operationsHeight = 90;
907+
const operationsHeight = 80;
908908

909-
const remainingSpace = window.innerHeight - (bannerHeight+controlsHeight+operationsHeight-2);
909+
const remainingSpace = window.innerHeight - (bannerHeight+controlsHeight+operationsHeight);
910910

911911
// equally divide among recipe, input and output
912912
["recipe", "input", "output"].forEach(( div ) => {

src/web/html/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
<div id="IO" class="split split-horizontal">
272272
<div id="input" class="split no-select" data-help-title="Input pane" data-help="<p>Input data can be entered by typing it in, pasting it in, dragging it in, or using the 'Load file' or 'Load folder' buttons.</p><p>CyberChef does its best to represent data as accurately as possible to ensure you know exactly what you are working with. Non-printable characters are represented using control character pictures, for example a null byte (0x00) is displayed like this: <span title='Control character null' aria-label='Control character null' class='cm-specialChar'>␀</span>.</p>">
273273
<div class="title no-select">
274-
<label for="input-text">Input</label>
274+
Input
275275
<span class="pane-controls">
276276
<div class="io-info" id="input-files-info"></div>
277277
<button type="button" class="desktop-only btn btn-primary bmd-btn-icon" id="btn-new-tab" data-toggle="tooltip" title="Add a new input tab" data-help-title="Tabs" data-help="<p>New tabs can be created to support multiple Inputs. These tabs have their own associated character encodings and EOL separators, as defined in their status bars.</p><p>The deep link in the URL bar only contains information about the currently active tab.</p>">
@@ -327,7 +327,7 @@
327327
</div>
328328
<div id="output" class="split" data-help-title="Output pane" data-help="<p>This pane displays the results of the Recipe after it has processed your Input.</p><p>CyberChef does its best to represent data as accurately as possible to ensure you know exactly what you are working with. Non-printable characters are represented using control character pictures, for example a null byte (0x00) is displayed like this: <span title='Control character null' aria-label='Control character null' class='cm-specialChar'>␀</span>.</p><p>When copying these characters from the Output, the original byte value should be copied into your clipboard, rather than the control character picture itself.</p>">
329329
<div class="title no-select">
330-
<label for="output-text">Output</label>
330+
Output
331331
<div class="flex-row-reverse">
332332
<span class="pane-controls">
333333
<div class="io-info" id="bake-info"></div>

src/web/stylesheets/components/_controls.css

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88

99
#controls {
1010
width: 100%;
11-
border-top: 1px solid var(--primary-border-colour);
1211
background-color: var(--secondary-background-colour);
1312
overflow: hidden;
1413
}
1514

15+
@media only screen and (min-width: 768px) {
16+
#controls {
17+
border-top: 1px solid var(--primary-border-colour);
18+
}
19+
}
20+
1621
#controls-content {
1722
display: flex;
18-
/*align-items: center;*/
1923
padding: 10px 0;
2024
height: 100%;
2125
}

src/web/stylesheets/components/_pane.css

+3-8
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,24 @@
66
* @license Apache-2.0
77
*/
88

9-
:root {
10-
--title-height: 48px;
11-
--tab-height: 40px;
12-
}
13-
149
.title {
1510
padding: 8px 12px;
16-
height: var(--title-height);
1711
border-bottom: 1px solid var(--primary-border-colour);
1812
font-weight: var(--title-weight);
1913
font-size: var(--title-size);
2014
color: var(--title-colour);
2115
background-color: var(--title-background-colour);
22-
line-height: calc(var(--title-height) - 14px);
2316
display: flex;
2417
justify-content: space-between;
18+
height: var(--title-height);
19+
align-items: center;
2520
}
2621

2722
.pane-controls {
2823
right: 8px;
2924
top: 8px;
3025
display: inline-flex;
26+
align-items: center;
3127
}
3228

3329
.pane-controls .btn {
@@ -47,4 +43,3 @@
4743
#files .card-header .float-right a:hover {
4844
text-decoration: none;
4945
}
50-

src/web/stylesheets/components/operations/_operations.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#operations-dropdown {
1717
position: absolute;
18-
top: 41px;
18+
top: var(--banner-height);
1919
width: 100%;
2020
height: auto;
2121
overflow: auto;

src/web/stylesheets/themes/_structure.css

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
:root {
22
/* Fixed heights */
33
--banner-height: 40px;
4-
/*initial mobile height*/
4+
5+
/* Mobile height */
6+
--title-height: 40px;
57
--controls-height: 50px;
6-
--operations-height: 90px;
8+
--operations-height: 80px;
79

10+
/* Desktop specific height */
811
--desktop-controls-height: 70px;
12+
--tab-height: 40px;
913
}
1014

1115
/**

0 commit comments

Comments
 (0)