ai:private-gpt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ai:private-gpt [2024/04/23 21:53] – Wulf Rajek | ai:private-gpt [2024/05/01 17:33] (current) – Wulf Rajek | ||
|---|---|---|---|
| Line 339: | Line 339: | ||
| git apply token-ctx-temp-settings-option.patch | git apply token-ctx-temp-settings-option.patch | ||
| </ | </ | ||
| + | |||
| + | ===== CSS Customisation ===== | ||
| + | |||
| + | To adjust the main input box and fix mobile/low height browser window issue of the input box wrapping to the right, some css trickery is required. The last three css lines are added to privategpt/ | ||
| + | <code python privategpt/ | ||
| + | def _build_ui_blocks(self) -> gr.Blocks: | ||
| + | logger.debug(" | ||
| + | with gr.Blocks( | ||
| + | title=UI_TAB_TITLE, | ||
| + | theme=gr.themes.Soft(primary_hue=slate), | ||
| + | css=" | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ".logo img { height: 100% }" | ||
| + | " | ||
| + | "# | ||
| + | "# | ||
| + | "#col { height: calc(100vh - 112px - 16px) !important; }" | ||
| + | "# | ||
| + | "# | ||
| + | "#col { min-height: | ||
| + | ) as blocks: | ||
| + | with gr.Row(): | ||
| + | |||
| + | </ | ||
| + | |||
ai/private-gpt.1713905614.txt.gz · Last modified: by Wulf Rajek