Using a new template
Go to the PocketQuery Administration
Go to "Templates" and click on "Add Template"
Name it "auto_resizable_table" and copy & paste following code into "content"
<table class="aui confluenceTable pocketquery-table" style="width: auto;">
<thead>
<tr>
#foreach ($column in $columns)
<th style="white-space: nowrap;">$!column</th>
#end
</tr>
</thead>
<tbody>
#foreach ($row in $result)
<tr>
#foreach ($column in $row)
<td>$!column</td>
#end
</tr>
#end
</tbody>
</table>
CODE
Go to your Query and select "auto_resizable_table" as its Template
Using an existing template
Modify your template by adding a style="width: auto;"
attribute to your table like this:
<table class="aui confluenceTable pocketquery-table" style="width: auto;">
...
</table>
CODE
Example
Default Template without style="width: auto;"

Modified Template including style="width: auto;"