Skip to content

Commit cc19a1b

Browse files
committed
chore: update github badges layout for small screen
1 parent b18cb95 commit cc19a1b

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

.github/workflows/github-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release to Github Pages
33

44
on:
55
push:
6-
branches: [main]
6+
branches: [main, deploy-github-pages]
77
paths:
88
- 'platforms/web/**'
99
- '.github/workflows/github-pages.yml'

platforms/web/src/components/graph_view.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl GraphView {
194194
{{ selector: '.current', style: {{ 'background-color': gt.activeNodeColor }} }},
195195
{{ selector: '.previous', style: {{ 'background-color': gt.defaultNodeColor }} }},
196196
{{ selector: '.halt', style: {{ 'background-color': gt.defaultNodeColor }} }},
197-
{{ selector: 'edge', style: {{ 'width': 2, 'line-color': gt.edgeColor, 'target-arrow-color': gt.edgeColor, 'target-arrow-shape': 'triangle', 'curve-style': 'bezier', 'font-size': '12px', 'text-background-color': 'white', 'text-background-opacity': 0.8 }} }},
197+
{{ selector: 'edge', style: {{ 'width': 2, 'line-color': gt.edgeColor, 'target-arrow-color': gt.edgeColor, 'target-arrow-shape': 'triangle', 'curve-style': 'bezier', 'font-family': '"Fira Code", monospace', 'font-size': '12px', 'color': '#444', 'text-background-color': '#F5F7FA', 'text-background-opacity': 0.8 }} }},
198198
{{ selector: 'edge[label]', style: {{ 'label': 'data(label)', 'text-wrap': 'wrap', 'text-max-width': '120px' }} }}
199199
],
200200
layout: {{ name: 'circle', padding: 30 }},
@@ -313,6 +313,6 @@ impl GraphView {
313313
.collect::<Vec<&str>>()
314314
.join(",");
315315

316-
format!("{}/{}/{}", read_str, write_str, dir_str)
316+
format!("{} -> {}, {}", read_str, write_str, dir_str)
317317
}
318318
}

platforms/web/styles.css

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -668,17 +668,16 @@ body {
668668
.app {
669669
padding: 1.5rem;
670670
}
671+
body {
672+
padding-top: 1rem;
673+
}
674+
body .socials {
675+
position: relative;
676+
margin: 0 1rem 0.2rem;
677+
}
671678
.main-layout, .left-panel, .right-panel {
672679
gap: 1.5rem;
673680
}
674-
.card, .program-selector-section, .editor-section, .tape-view,
675-
.state-display,
676-
.control-panel,
677-
.graph-view,
678-
.multi-tape-view,
679-
.status-section {
680-
/* These styles are now handled by .section */
681-
}
682681
.btn {
683682
padding: 0.7rem 1.4rem;
684683
font-size: 0.9rem;
@@ -687,10 +686,12 @@ body {
687686

688687
.socials {
689688
position: absolute;
690-
top: 1.5rem;
691-
right: 1.5rem;
689+
right: 0;
690+
top: 0;
692691
display: flex;
692+
justify-content: flex-end;
693693
gap: 5px;
694+
margin: 1.5rem 1.5rem 0 0;
694695
z-index: 10;
695696
}
696697
/* Share Button Styles */

platforms/web/turing-editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ window.addEventListener("load", () => {
1313
nodeTextColor: "white",
1414
edgeTextBackgroundColor: "white",
1515
};
16+
1617
console.log("Graph theme initialized");
1718

1819
// Initialize CodeMirror-based syntax highlighting

0 commit comments

Comments
 (0)