Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
Ab text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xnkevinnguyen committed Mar 2, 2020
1 parent 6cf1ad6 commit fea29fb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/view/components/cpx/CpxImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const initSvgStyle = (svgElement: HTMLElement, brightness: number): void => {

const ab = outerBtn(165, SvgStyle.MB_HEIGHT - 15, "A+B");
const abtext = svg.child(ab.outer, "text", {
class: "sim-text",
class: "sim-text-outside",
x: SvgStyle.BUTTON_TEXT_BASELINE,
y: SvgStyle.MB_HEIGHT - 18,
}) as SVGTextElement;
Expand Down
4 changes: 4 additions & 0 deletions src/view/components/cpx/Cpx_svg_style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ export const SVG_STYLE = `
fill:#fff;
pointer-events: none; user-select: none;
}
.sim-text-outside{
font-size:8px;
fill: var(--vscode-textLink-activeForeground);
}
.sim-text.small {
font-size:6px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/view/components/microbit/Microbit_svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ export class MicrobitSvg extends React.Component {
fill="#111"
style={{ fill: "rgb(17, 17, 17)" }}
/>
<text x={525} y={340} className="sim-text">
<text x={525} y={340} className="sim-text-outside">
A+B
</text>
<g
Expand Down
5 changes: 4 additions & 1 deletion src/view/styles/Microbit.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ svg.sim.grayscale {
.sim-button:active {
fill: orange;
}

.sim-text-outside {
font-size: 25px;
fill: var(--vscode-textLink-activeForeground);
}
.sim-board,
.sim-display,
sim-button {
Expand Down

0 comments on commit fea29fb

Please sign in to comment.