Commit ·
aef5a44
1
Parent(s): b98ffb6
bugfix(#133): update ui in extension...
Browse filesFiles changed (3)
1233 unmodified lines7891011121314151617181920212223242526.message {display: flex;flex-direction: column;3 unmodified lines.message_sent {width: fit-content;padding: 5px;border: #04c4f8 1px solid;border-radius: 3px;background-color: transparent;color: #04c4f8;align-self: end;}.message_received {width: fit-content;padding: 5px;border: #bc0fdb 1px solid;border-radius: 3px;background-color: transparent;color: #bc0fdb;}123456789101112133 unmodified lines17181920212223242526272829303132[data-theme='light'] {--send-theme-color: #0a164d;--receive-theme-color: #0d0c0d;}[data-theme='dark'] {--send-theme-color: #0a164d;--receive-theme-color: #333333;}.message {display: flex;flex-direction: column;3 unmodified lines.message_sent {width: fit-content;padding: 5px;border-radius: 5px;background-color: var(--send-theme-color);align-self: end;}.message_received {width: fit-content;padding: 5px;border-radius: 5px;background-color: var(--receive-theme-color);}
123456789108 unmodified lines19202122232419 unmodified lines44454647.main-layout {display: flex;flex-direction: column;height: 350px; /* Set the height of the layout to be 100% of the viewport */width: 400px;border-radius: 5px;background-color: #f5f5f5dd;}.main-layout .ant-layout-content {8 unmodified lines.footer {padding: 10px;justify-self: end;}.content {19 unmodified lines.divider {margin: 0;}1234567891011121314151617181920218 unmodified lines3031323334353619 unmodified lines5657585960[data-theme='light'] {--font-color: #c9d1d9;--theme-color: #333333;}[data-theme='dark'] {--font-color: #aeafb2;--theme-color: #0d0c0d;}.main-layout {display: flex;flex-direction: column;height: 350px; /* Set the height of the layout to be 100% of the viewport */width: 400px;border-radius: 10px;background-color: var(--theme-color);color: var(--font-color);}.main-layout .ant-layout-content {8 unmodified lines.footer {padding: 10px;justify-self: end;background-color: var(--theme-color);}.content {19 unmodified lines.divider {margin: 0;background-color: grey;}
230 unmodified lines231232233234235236237238230 unmodified linesreturn data}return (<Layout className="main-layout"><div className="header"><h4>RisingBrowser</h4></div>230 unmodified lines231232233234235236237238239240241242243244245246247248249250230 unmodified linesreturn data}/// Check if the user's system is in dark modeconst darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');const isDarkMode = darkModeMediaQuery.matches;const handleThemeChange = (e) => {const isDarkMode = e.matches;// Do something based on the new theme data};// Listen for changes in the theme datadarkModeMediaQuery.addEventListener('change', handleThemeChange);return (<Layout className="main-layout" data-theme={isDarkMode ? 'dark': 'light'}><div className="header"><h4>RisingBrowser</h4></div>
Extension/src/pages/Panel/Message/index.css+14-8
Extension/src/pages/Panel/Panel.css+15-2
Extension/src/pages/Panel/Panel.jsx+13-1