Files
koodo-reader/src/components/dialogs/settingDialog/settingDialog.css
troyeguo b458ec2430 feat: enhance settings dialog and add Tamil language support
- Updated the SettingDialog component to include a new CSS class for setting tabs, improving styling and layout.
- Modified settingDialog.css to define styles for the new setting-tab class, ensuring proper width and text overflow handling.
- Enhanced importLocal.css to improve item layout with better line height and cursor styles.
- Refactored PopupRefer component to improve content extraction logic and added console logs for debugging.
- Added Tamil language support in settingList.tsx and integrated it into the i18n configuration.
- Updated router logic to handle language changes for Tamil.
- Adjusted navigationPanel.css to ensure proper overflow handling.
- Made minor adjustments to sidebar component and CSS for better tooltip integration and layout.
2025-10-13 18:22:48 +08:00

224 lines
3.9 KiB
CSS

.setting-dialog-container {
width: 510px;
height: 490px;
position: absolute;
left: calc(50% - 255px);
top: calc(50% - 245px);
overflow: hidden;
opacity: 1;
z-index: 20;
border-radius: 5px;
animation: popup 0.1s ease-in-out 0s 1;
}
.setting-dialog-title {
font-size: 18px;
font-weight: 500;
line-height: 15px;
opacity: 1;
margin: 15px 0px 10px;
text-align: center;
}
.setting-dialog-new-title {
font-size: 15px;
line-height: 20px;
opacity: 1;
margin-top: 10px;
margin-left: 25px;
width: calc(100% - 50px);
margin-bottom: 5px;
/* width: 280px; */
display: flex;
justify-content: space-between;
font-weight: 500;
}
.setting-dialog-list {
font-size: 15px;
line-height: 18px;
opacity: 1;
margin: 7px;
}
.setting-dialog-new-container {
margin: 20px 30px;
}
.setting-dialog-info {
height: 340px;
overflow-y: scroll;
}
.setting-dialog-illustration {
width: 200px;
position: absolute;
bottom: 0px;
right: 0px;
z-index: 20;
}
.setting-dialog-url {
width: 200px;
font-size: 13px;
position: absolute;
bottom: 6px;
left: 10px;
user-select: text;
z-index: 30;
line-height: 16px;
}
.setting-dialog-subtitle {
font-size: 15px;
margin: 7px 10px;
text-align: center;
color: #0078d4;
float: left;
}
.setting-tab {
max-width: 18% !important;
text-overflow: ellipsis;
max-height: 40px;
}
.setting-language {
width: 30px;
height: 30px;
font-size: 30px;
cursor: pointer;
float: right;
}
.setting-close-container {
position: absolute;
top: 10px;
right: 10px;
transition: 0.1s;
width: 38px;
height: 38px;
cursor: pointer;
}
.setting-close-container:hover {
border-radius: 50%;
}
.setting-close {
margin-right: 10px;
margin-top: 10px;
float: right;
font-size: 18px;
cursor: pointer;
}
.setting-subtitle {
font-size: 15px;
margin: 5px;
margin-bottom: 0px;
text-align: center;
}
.setting-plugin-icon {
margin: 5px;
font-size: 18px;
display: inline-block;
width: 20px;
}
.setting-plugin-name {
position: relative;
bottom: 3px;
}
.lang-setting-dropdown {
width: 100px;
height: 30px;
font-size: 15px;
font-weight: 500;
text-align: center;
cursor: pointer;
border-radius: 5px;
}
.lang-setting-option {
font-size: 15px;
font-weight: 500;
line-height: 27px;
text-align: left;
}
.setting-dialog-location-title {
font-size: 13px;
font-weight: 500;
border-radius: 5px;
padding: 5px;
/* width: 75%; */
margin-left: 25px;
margin-right: 25px;
text-overflow: ellipsis;
word-break: break-all;
margin-top: 6px;
margin-bottom: 10px;
user-select: text;
}
.change-location-button {
display: inline-block;
min-width: 50px;
padding-left: 10px;
padding-right: 10px;
height: 22px;
opacity: 1;
border-radius: 11px;
position: relative;
top: 0px;
left: 2px;
cursor: pointer;
font-size: 13px;
display: flex;
justify-content: center;
align-items: center;
line-height: 1;
}
.theme-setting-item {
width: 25px;
height: 25px;
border-radius: 50%;
cursor: pointer;
box-sizing: border-box;
}
.theme-setting-container {
width: 150px;
height: 25px;
display: flex;
justify-content: space-between;
align-items: center;
}
.setting-option-subtitle {
font-size: 12px;
opacity: 0.8;
margin-left: 25px;
margin-right: 25px;
line-height: 15px;
}
.setting-dialog-new-plugin {
position: absolute;
bottom: 20px;
right: 20px;
cursor: pointer;
}
.token-dialog-button-container {
margin-top: 20px;
margin-bottom: 30px;
}
.token-dialog-token-box {
width: 100%;
height: 100px;
opacity: 1;
font-size: 13px;
line-height: 14px;
opacity: 1;
box-sizing: border-box;
/* left: 30px; */
border-radius: 5px;
padding: 5px;
margin-top: 10px;
box-sizing: border-box;
}
.token-dialog-username-box {
width: 100%;
height: 30px;
opacity: 1;
font-size: 13px;
line-height: 14px;
opacity: 1;
margin-top: 9px;
padding-left: 5px;
border-radius: 5px;
box-sizing: border-box;
}