Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems turning off wrapping not working #125

Open
gdemin opened this issue Oct 21, 2024 · 0 comments
Open

It seems turning off wrapping not working #125

gdemin opened this issue Oct 21, 2024 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@gdemin
Copy link

gdemin commented Oct 21, 2024

Hi,

If I have long text and turn off wrapping I suppose that text will be truncated. But it doesn't. See screenshot.

image

JSON
{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 63,
  "links": [],
  "panels": [
    {
      "datasource": {
        "default": true,
        "type": "grafana-clickhouse-datasource",
        "uid": "ddf31v6u22hogf"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 10,
        "x": 0,
        "y": 0
      },
      "id": 1,
      "options": {
        "nestedObjects": [],
        "tables": [
          {
            "items": [
              {
                "aggregation": "none",
                "appearance": {
                  "alignment": "start",
                  "background": {
                    "applyToRow": false
                  },
                  "width": {
                    "auto": true,
                    "min": 20,
                    "value": 100
                  },
                  "wrap": false
                },
                "edit": {
                  "editor": {
                    "type": "string"
                  },
                  "enabled": false,
                  "permission": {
                    "mode": "",
                    "userRole": []
                  }
                },
                "enabled": true,
                "field": {
                  "name": "no_wrap",
                  "source": "A"
                },
                "filter": {
                  "enabled": false,
                  "mode": "client",
                  "variable": ""
                },
                "footer": [],
                "group": false,
                "label": "",
                "objectId": "",
                "pin": "",
                "sort": {
                  "descFirst": false,
                  "enabled": false
                },
                "type": "auto"
              }
            ],
            "name": "text",
            "pagination": {
              "enabled": false,
              "mode": "client"
            },
            "update": {
              "datasource": "",
              "payload": {}
            }
          }
        ],
        "toolbar": {
          "export": false
        }
      },
      "pluginVersion": "1.5.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "ddf31v6u22hogf"
          },
          "editorType": "sql",
          "format": 1,
          "meta": {
            "builderOptions": {
              "columns": [],
              "database": "",
              "limit": 1000,
              "mode": "list",
              "queryType": "table",
              "table": ""
            }
          },
          "pluginVersion": "4.5.0",
          "queryType": "table",
          "rawSql": "SELECT  'very-very long sentence: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget metus et tortor commodo pharetra in vel nisl. Cras nisl mi, sollicitudin a lobortis id, suscipit sed ante. Ut rhoncus, dolor placerat auctor pharetra, nibh dolor pharetra eros, non ornare elit elit eget mauris. Aliquam mattis urna a luctus egestas. Pellentesque eu est ac augue congue hendrerit. Fusce laoreet nulla a malesuada scelerisque. Nullam scelerisque in ex eu pretium. Ut eget orci ac mi pellentesque viverra. Donec a mollis mauris, a pellentesque est. Integer condimentum sem vel venenatis finibus. Phasellus dui lorem, convallis ac erat at, tristique bibendum diam. Maecenas ultricies nisi nunc, id tincidunt leo feugiat ac.' as no_wrap ",
          "refId": "A"
        }
      ],
      "title": "business table no wrap",
      "type": "volkovlabs-table-panel"
    },
    {
      "datasource": {
        "default": true,
        "type": "grafana-clickhouse-datasource",
        "uid": "ddf31v6u22hogf"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 10,
        "y": 0
      },
      "id": 4,
      "options": {
        "nestedObjects": [],
        "tables": [
          {
            "items": [
              {
                "aggregation": "none",
                "appearance": {
                  "alignment": "start",
                  "background": {
                    "applyToRow": false
                  },
                  "width": {
                    "auto": true,
                    "min": 20,
                    "value": 100
                  },
                  "wrap": true
                },
                "edit": {
                  "editor": {
                    "type": "string"
                  },
                  "enabled": false,
                  "permission": {
                    "mode": "",
                    "userRole": []
                  }
                },
                "enabled": true,
                "field": {
                  "name": "wrap",
                  "source": "A"
                },
                "filter": {
                  "enabled": false,
                  "mode": "client",
                  "variable": ""
                },
                "footer": [],
                "group": false,
                "label": "",
                "objectId": "",
                "pin": "",
                "sort": {
                  "descFirst": false,
                  "enabled": false
                },
                "type": "auto"
              }
            ],
            "name": "text",
            "pagination": {
              "enabled": false,
              "mode": "client"
            },
            "update": {
              "datasource": "",
              "payload": {}
            }
          }
        ],
        "toolbar": {
          "export": false
        }
      },
      "pluginVersion": "1.5.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "ddf31v6u22hogf"
          },
          "editorType": "sql",
          "format": 1,
          "meta": {
            "builderOptions": {
              "columns": [],
              "database": "",
              "limit": 1000,
              "mode": "list",
              "queryType": "table",
              "table": ""
            }
          },
          "pluginVersion": "4.5.0",
          "queryType": "table",
          "rawSql": "SELECT 'very-very long sentence: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget metus et tortor commodo pharetra in vel nisl. Cras nisl mi, sollicitudin a lobortis id, suscipit sed ante. Ut rhoncus, dolor placerat auctor pharetra, nibh dolor pharetra eros, non ornare elit elit eget mauris. Aliquam mattis urna a luctus egestas. Pellentesque eu est ac augue congue hendrerit. Fusce laoreet nulla a malesuada scelerisque. Nullam scelerisque in ex eu pretium. Ut eget orci ac mi pellentesque viverra. Donec a mollis mauris, a pellentesque est. Integer condimentum sem vel venenatis finibus. Phasellus dui lorem, convallis ac erat at, tristique bibendum diam. Maecenas ultricies nisi nunc, id tincidunt leo feugiat ac.' as wrap",
          "refId": "A"
        }
      ],
      "title": "business table wrap",
      "type": "volkovlabs-table-panel"
    },
    {
      "datasource": {
        "default": true,
        "type": "grafana-clickhouse-datasource",
        "uid": "ddf31v6u22hogf"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            },
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 10,
        "x": 0,
        "y": 11
      },
      "id": 2,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true
      },
      "pluginVersion": "11.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "ddf31v6u22hogf"
          },
          "editorType": "sql",
          "format": 1,
          "meta": {
            "builderOptions": {
              "columns": [],
              "database": "",
              "limit": 1000,
              "mode": "list",
              "queryType": "table",
              "table": ""
            }
          },
          "pluginVersion": "4.5.0",
          "queryType": "table",
          "rawSql": "SELECT 'very-very long sentence: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget metus et tortor commodo pharetra in vel nisl. Cras nisl mi, sollicitudin a lobortis id, suscipit sed ante. Ut rhoncus, dolor placerat auctor pharetra, nibh dolor pharetra eros, non ornare elit elit eget mauris. Aliquam mattis urna a luctus egestas. Pellentesque eu est ac augue congue hendrerit. Fusce laoreet nulla a malesuada scelerisque. Nullam scelerisque in ex eu pretium. Ut eget orci ac mi pellentesque viverra. Donec a mollis mauris, a pellentesque est. Integer condimentum sem vel venenatis finibus. Phasellus dui lorem, convallis ac erat at, tristique bibendum diam. Maecenas ultricies nisi nunc, id tincidunt leo feugiat ac.' as no_wrap ",
          "refId": "A"
        }
      ],
      "title": "grafana table no wrap",
      "type": "table"
    },
    {
      "datasource": {
        "default": true,
        "type": "grafana-clickhouse-datasource",
        "uid": "ddf31v6u22hogf"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto",
              "wrapText": true
            },
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 10,
        "y": 11
      },
      "id": 3,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true
      },
      "pluginVersion": "11.2.0",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "ddf31v6u22hogf"
          },
          "editorType": "sql",
          "format": 1,
          "meta": {
            "builderOptions": {
              "columns": [],
              "database": "",
              "limit": 1000,
              "mode": "list",
              "queryType": "table",
              "table": ""
            }
          },
          "pluginVersion": "4.5.0",
          "queryType": "table",
          "rawSql": "SELECT 'very-very long sentence: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget metus et tortor commodo pharetra in vel nisl. Cras nisl mi, sollicitudin a lobortis id, suscipit sed ante. Ut rhoncus, dolor placerat auctor pharetra, nibh dolor pharetra eros, non ornare elit elit eget mauris. Aliquam mattis urna a luctus egestas. Pellentesque eu est ac augue congue hendrerit. Fusce laoreet nulla a malesuada scelerisque. Nullam scelerisque in ex eu pretium. Ut eget orci ac mi pellentesque viverra. Donec a mollis mauris, a pellentesque est. Integer condimentum sem vel venenatis finibus. Phasellus dui lorem, convallis ac erat at, tristique bibendum diam. Maecenas ultricies nisi nunc, id tincidunt leo feugiat ac.' as wrap ",
          "refId": "A"
        }
      ],
      "title": "grafana table wrap",
      "type": "table"
    }
  ],
  "schemaVersion": 39,
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "browser",
  "title": "business  table",
  "uid": "fe1j9j30xhdkwf",
  "version": 13,
  "weekStart": ""
}
@mikhail-vl mikhail-vl added the question Further information is requested label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Ready
Development

No branches or pull requests

3 participants