Auto-resize text content