Gemini Widescreen Chat UI

Adjusts margins for ultrawide screens, customizes user prompt colors, centers code blocks, expands dataset tables, and fixes input field overflow.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Gemini Widescreen Chat UI
// @name:es      Gemini Widescreen Chat UI
// @namespace    https://github.com/MateoPalmeiro/Gemini-Widescreen-UI
// @version      1.2
// @description  Adjusts margins for ultrawide screens, customizes user prompt colors, centers code blocks, expands dataset tables, and fixes input field overflow.
// @description:es Ajusta los márgenes para pantallas ultra panorámicas, personaliza el color de tus mensajes, centra los bloques de código, expande las tablas y arregla el desbordamiento del cajón de texto.
// @author       MateoPalmeiro
// @license      MIT
// @match        https://gemini.google.com/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    const customCSS = `
        /* Layout margins for ultrawide screens */
        .conversation-container,
        .input-area-container,
        .bottom-container {
            max-width: 75% !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        /* Input field overflow and alignment fix */
        .text-input-field {
            max-width: none !important;
            width: auto !important;
            flex-grow: 1 !important;
        }

        /* Expand tables to fit container width */
        .table-block,
        .table-wrapper,
        table {
            max-width: 100% !important;
            width: 100% !important;
        }

        /* Custom user query styling */
        .user-query-bubble-with-background {
            background-color: #1a237e !important;
            color: #ffffff !important;
        }

        /* Centered code blocks */
        code-block,
        .code-block,
        [class*="code-block"],
        pre {
            max-width: 90% !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        /* Improved typography for readability */
        .conversation-container p {
            line-height: 1.6 !important;
            margin-bottom: 0.8em !important;
        }
    `;

    GM_addStyle(customCSS);
})();