Commit d30fb047 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

fine tuning automaton margin and plural

parent d1c8574d
Pipeline #3257 passed with stage
in 1 minute and 27 seconds
......@@ -189,6 +189,8 @@ const styles = theme => ({
},
automaton_svg: {
overflow: 'auto',
marginLeft: -4,
marginRight: -4,
},
});
......@@ -782,8 +784,7 @@ class LtlTranslate extends React.Component {
<React.Fragment>
{'states' in res &&
<Typography>
{res['det'] ? "D" : "Non-d"}eterministic automaton
with {res['states']} states and {res['edges']} edges.
{res['det'] ? "D" : "Non-d"}eterministic automaton with {res['states']} state{res['states'] > 1 ? "s" : ""} and {res['edges']} edge{res['edges'] > 1 ? "s" : ""}.
</Typography>}
{'note' in res && <NoteText text={res['note']}/>}
{'automaton_svg' in res &&
......
......@@ -12,7 +12,7 @@ import os
app = Flask(__name__)
CORS(app)
os.environ['SPOT_DOTEXTRA'] = 'size="6.30,5" edge[arrowhead=vee, arrowsize=.7]'
os.environ['SPOT_DOTEXTRA'] = 'size="6,6" edge[arrowhead=vee, arrowsize=.7]'
import spot
from spot.aux import str_to_svg
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment