Skip to content

Commit b77fdb2

Browse files
YarlordArnabdaz
andauthored
feat: fixed printing bool tables (#227)
* feat: fixed printing bool tables * Update src/components/DialogBox/CombinationalAnalysis.vue --------- Co-authored-by: Arnabdaz <[email protected]>
1 parent f7b9d69 commit b77fdb2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/components/DialogBox/BooleanTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<table class="content-table">
3-
<tbody style="display: block; max-height: 70vh; overflow-y: scroll">
3+
<tbody style="display: block; max-height: 70vh;">
44
<tr>
55
<th v-for="tableHeading in tableHeader" :key="tableHeading">
66
{{ tableHeading }}

src/components/DialogBox/CombinationalAnalysis.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:is-persistent="true"
99
:table-header="tableHeader"
1010
:table-body="tableBody"
11-
message-text="BooleanLogicTable"
11+
message-text="Boolean Logic Table"
1212
@button-click="
1313
(selectedOption, circuitItem, circuitNameVal) =>
1414
dialogBoxConformation(selectedOption)
@@ -690,9 +690,15 @@ function generateCircuit() {
690690
function printBooleanTable() {
691691
console.log($('.messageBox .v-card-text')[0])
692692
var sTable = $('.messageBox .v-card-text')[0].innerHTML
693+
console.log('This is the table')
693694
console.log(sTable)
695+
694696
var style =
695-
'<style> table {font: 20px Calibri;} table, th, td {border: solid 1px #DDD;border-collapse: collapse;} padding: 2px 3px;text-align: center;} </style>'
697+
`<style>
698+
table {font: 40px Calibri;}
699+
table, th, td {border: solid 1px #DDD;border-collapse: 0;}
700+
tbody {padding: 2px 3px;text-align: center;}
701+
</style>`.replace(/\n/g, "")
696702
var win = window.open('', '', 'height=700,width=700')
697703
var htmlBody = `
698704
<html><head>\

0 commit comments

Comments
 (0)